It's all about the answers!

Ask a question

Resource Oriented Work Item API with OSLC_CM


Steve Crespo (152) | asked Oct 09 '15, 1:49 p.m.
Is it possible to get the approvals for a work item using the rest api? I have been doing a GET to this url https:// :9443/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/12345 to get a specific work item but the approvers aren't included. I am not sure how to get the approvals with that endpoint. I did find that I could use this: https:// :9443/ccm/rpt/repository/workitem?fields=workitem/workItem[id=12345]/approvals/(stateIdentifier|stateName|approvalDescriptor/id|approver/name) to get the approvals but it returns xml and I need it in json format. I've tried setting the Accept header to application/json but that doesn't work. Any help would be much appreciated!

Comments
Steve Crespo commented Oct 09 '15, 1:50 p.m.

 I think I may be wrong in that the api I am currently using isn't oslc but ccm.

Accepted answer


permanent link
Donald Nong (14.5k614) | answered Oct 11 '15, 7:55 p.m.
You cannot query approvals using CCM OSLC API.
https://jazz.net/forum/questions/147416/is-there-a-way-to-query-rtc-approvals-via-the-oslc-rest-api

The API that returns the approvals is reportable REST API, which is mainly for reporting.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI
Steve Crespo selected this answer as the correct answer

Comments
Steve Crespo commented Oct 12 '15, 11:45 a.m.

That API doesn't report JSON does it?


Donald Nong commented Oct 14 '15, 1:15 a.m. | edited Oct 14 '15, 1:15 a.m.

No it doesn't. The reportable REST API generates contents for ETL and report engines. I have never heard that it produces anything in JSON.

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.