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!
Comments
Steve Crespo
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.