It's all about the answers!

Ask a question

REST API to view work item in RTC in JSON format


Bijoy J (11) | asked Mar 24, 4:54 a.m.

 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.

One answer



permanent link
Ralph Schoon (58.1k23642) | answered Mar 24, 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
  • The API you are using supports json at all, 
  • What the legal accept header are for all the APIs


Comments
Bijoy J commented Mar 24, 1:07 p.m.

I tried passing the accept headers but still not proper response 

Your answer


Register or to post your answer.