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!
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!
Accepted answer
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.
One other answer
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
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 02 '15, 2:11 a.m.bump up to give it a chance