Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes

Comments

No, the reportable REST API does not support  Json format as far as I understand.


The supported 

I have learned the hard way that you need to understand which API you are trying to use and what limitations it has. 


Accepted answer

Permanent link

 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

0 votes

Comments

Note that the original question is about the Reportable REST API which does not support Json format.


One other answer

Permanent link

 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

0 votes

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.

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,950

Question asked: Mar 24 '21, 4:54 a.m.

Question was seen: 2,572 times

Last updated: May 06 '22, 2:14 a.m.

Related questions
Confirmation Cancel Confirm