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

Resource Oriented Work Item API with OSLC_CM

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!

0 votes

Comments

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


Accepted answer

Permanent link
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

0 votes

Comments

That API doesn't report JSON does it?

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 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
× 12,030

Question asked: Oct 09 '15, 1:49 p.m.

Question was seen: 1,831 times

Last updated: Oct 14 '15, 1:15 a.m.

Confirmation Cancel Confirm