Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

Hi,

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/com.ibm.team.workitem.WorkItem/$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 oslc.select parameter?

EDIT: We've been able to see that the namespace for the tab itself is com.ibm.team.workitem.presentation.approvals, which leads me to think it would/could be exposed as a ($workItem, rtc_cm:com.ibm.team.workitem.presentation.approvals.approval, $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!

0 votes

Comments

bump up to give it a chance


Accepted answer

Permanent link
 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 - https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#RTC_Work_Item_Vocabulary
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 - https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.newWorkItem&type=enhancement


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

0 votes


One other answer

Permanent link

Hi,

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     

Regards,

Pablo

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 516
× 62
× 60

Question asked: Apr 02 '14, 2:05 p.m.

Question was seen: 8,853 times

Last updated: Jun 18 '19, 9:29 a.m.

Confirmation Cancel Confirm