REST API to view work item in RTC in JSON format
I am trying to figure out a way to view work item in JSON format. This is the URL which I am accessing to view the work item : https://localhost:8080/ccm/rpt/repository/workitem/workItem/id/104?fields=workitem/workItem[id=104]/(description|summary|severity|state)
It gives me the response code 302 Found.
I also tried what they have mentioned here but to no avail.
Is there a way to get the work item in JSON format.
Accepted answer
Please see https://rsjazz.wordpress.com/2022/02/02/ewm-work-item-oslc-cm-api/
Note the headers
Accept application/json; charset=utf-8
Content Type application/json; charset=utf-8
Comments
Note that the original question is about the Reportable REST API which does not support Json format.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 06 '22, 2:14 a.m.No, the reportable REST API does not support Json format as far as I understand.