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
![]()
Ralph Schoon (61.6k●3●36●43)
| answered May 06 '22, 1:53 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited May 06 '22, 1:53 a.m. 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
Ralph Schoon selected this answer as the correct answer
Comments Note that the original question is about the Reportable REST API which does not support Json format. |
One other answer
![]()
Ralph Schoon (61.6k●3●36●43)
| answered Mar 24 '21, 10:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER As far as I know, the way to ask for the the format is the Accept header. You can try to use other accept headers such as Accept: application/json or Accept: text/json.
I don not know if
Comments I tried passing the accept headers but still not proper response Hi,
I would like to know how to get a json work item.
Regards any help
If you have a question, ask the question. Do not ask your question on someone a question of someone else. |
Comments
No, the reportable REST API does not support Json format as far as I understand.