approvalTasks and approvals always null in OSCL REST API
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
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
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.
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.
I know approvals are fully supported in the Java APIs.