It's all about the answers!

Ask a question

approvalTasks and approvals always null in OSCL REST API


Brad Parker (111) | asked Nov 30 '17, 10:10 a.m.

 Finally getting around to doing some approval validation automation, or I hoped I was. 

I've seen the following pair of fields in my JSON data for some time and just never used them
            "rtc_cm:approvalTasks": null,
            "rtc_cm:approvals": null,

I figured that when I added some approval records via the UI they would appear here. But they didn't. Some searching brought me to this article from 2014
https://jazz.net/forum/questions/147416/is-there-a-way-to-query-rtc-approvals-via-the-oslc-rest-api
says that the data is not exposed in the API at that time, but now we're running 6.0.4 and it shows up as null. Is there some issue here or has the data still not been exposed, just the fields added as always null?


2 answers



permanent link
Kot T. (1.5k11219) | answered Dec 15 '23, 4:43 p.m.
JAZZ DEVELOPER

The following URLs return approvals and approvalTasks:

  • https://<server:port>/ccm/oslc/workitems/<workitem_UUID>/lqe/rtc_cm:approvals
  • https://<server:port>/ccm/oslc/workitems/<workitem_UUID>/lqe/rtc_cm:approvalTasks

It's still unclear whether these are internal only or can be used for integration with EWM.


permanent link
Ralph Schoon (63.1k33646) | answered Dec 16 '23, 1:25 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The EWM reportable REST AI supports and documents reading approval data. See https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/ for how to.

Thanks Kot. https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20 does not show approvals.

I know approvals are fully supported in the Java APIs.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.