It's all about the answers!

Ask a question

REST API to view and set work item approvals


Aaron Allsbrook (71257) | asked Aug 29 '13, 1:56 p.m.
 Is there a way to use the public REST API to view the Approval details and execute an approve?

On the basic workitem details url https://<server>/ccm/oslc/workitems/<id> I don't have any information about the historical or current approvals.  

Inspecting the web UI is see the following internal service being used

https://<server>/ccm/service/com.ibm.team.workitem.common.internal.rest.IWorkItemRestService/workItemDTO2?includeHistory=false&id=6435

but the response is pretty large and has a lot of unneeded details

Comments
Aaron Allsbrook commented Aug 30 '13, 9:50 a.m.

Im guessing no public api, so Ill update on my progress..  I have actually managed to make the internal url work a little lighter by adding some additionally query parameters


includeHistory=false&includeLinks=false&includeAttributes=false&includeApprovals=true&id=555 

next to see if it honor json accept-response type and to actually post an approve

One answer



permanent link
Rosa Naranjo (2.9k11623) | answered Aug 30 '13, 1:56 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
 Aaron

Comments
Aaron Allsbrook commented Aug 30 '13, 2:00 p.m.

Hi Rosa,  Perhaps I am missing something but that appears to be only about using the Java API.  Is there REST API in there as well? 

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.