It's all about the answers!

Ask a question

Is there a way to query RTC Approvals via the OSLC REST API?

Stephen Nowell (25125) | asked Apr 02 '14, 2:05 p.m.
edited Jun 02 '15, 2:10 a.m. by Ralph Schoon (58.2k23642)

We are currently running RTC version 4.0.0, and in the process of implementing a reporting solution using the OSLC REST API. Our problem is not with custom fields, as those show up in the RDF/XML that OSLC is producing. However we are unable to see the Reviews, Verifications, and Approvals on the "Approvals" tab of a work item. We're querying the https://myccmServer:9443/ccm/resource/itemName/$ID endpoint and getting an RDF/XML document back, but the only relevant triples we're able to see are oslc_cm:approved, oslc_cm:verified, and oslc_cm:reviewed, and those are simple boolean values. We need to be able to see the Type, Name, and State of each of the Approvals, Reviews, and Verifications on this tab, and preferably through the OSLC API instead of the older REST/Reportable REST API. Is there some RDF triple that doesn't come back through a normal query that we need to say explicitly in an parameter?

EDIT: We've been able to see that the namespace for the tab itself is, which leads me to think it would/could be exposed as a ($workItem,, $approvalURI) triple, but nothing of the sort is showing up for us.

Further Edit: I'm also noticing that the three specified triples (oslc:approved|verified|reviewed) are being updated to reflect the status of the Approvals|Verificiations|Reviews on this tab. If, for example, all of the Approvals have been set to Approved status, oslc_cm:approved contains a value of "true." If any are Pending or Rejected, this value will be "false." This shows that these items are being accessed, if not exposed.

Thanks in advance!

Ralph Schoon commented Jun 02 '15, 2:11 a.m.

bump up to give it a chance

Accepted answer

permanent link
Sandeep Somavarapu (1011) | answered Jun 02 '15, 12:41 p.m.
 Hi Stephen,

Approval descriptors (in the approval tabs) are not supported or exposed yet through OSLC APIs of Work Item. Hence you cannot query on them. Check this wiki -
This gives you details about what and what not can be done using our OSLC APIs. If you are missing or requiring any functionality, please open an Enhancement request here -

Sandeep Somavarapu
Developer, RTC TaP team.
Stephen Nowell selected this answer as the correct answer

One other answer

permanent link
Pablo K (298) | answered Jun 18 '19, 4:42 a.m.
edited Jun 18 '19, 9:29 a.m.


I came across here looking for same situation.
is this still accurate for RTC 6.0.5 or newer versions? 

just in case, standard REST API has this information available f.e.      |approvalDescriptors/typeName|approvalDescriptors/name|approvalDescriptors/approvals/approver/userId|approvalDescriptors/approvals/approver/emailAddress |approvalDescriptors/approvals/stateName     



Your answer

Register or to post your answer.