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

how to view the XML of RTC Work Item in REST Client or browser

I have configured the REST Client in Firefox. What headers to apply to retrieve the XML of the RTC work item ?

1 vote



2 answers

Permanent link
Hi Chidambaram,

I think the most basic ones you need are :

Accept
OSLC-Core-Version
X-Jazz-CSRF-Prevent

the below link has various examples with appropriate headers :
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Getting_Representations

Getting the value for X-Jazz-CSRF-Prevent is a little tricky, here is the extract from the same (mentioned above) link on it :

Note: Starting in Rational Team Concert 4.0.0.1, Jazz Team Server performs an additional check for the X-Jazz-CSRF-Prevent header when an HTTP POST access request is issued from a browser. The HTTP POST access request is detected by the Jazz Team Server through the user-agent header. You can add the X-Jazz-CSRF-Prevent header by using the current JSESSIONID value in a browser tool (for example, Poster or RESTClient). To perform this task, search your cookies and copy the Content value of the JSESSIONID for the fully qualified host name (path and host name) corresponding to the public URI of your Jazz Team Server.

you should be up and running with this..

hope this helps.

Regards,
Dinesh

1 vote


Permanent link
Hi Chidambaram,
Here are my steps:
  1. Set the url to https://your-server/ccm/ccm/oslc/workitems/1.xml. This is an example if you want to fetch work item number 1.

  2. Set username and password in authentication options

  3. In the headers select the following one:
    name: Accept
    value: text/xml

Let us know if that works.

0 votes

Comments

Launching https://server:port/ccm/oslc/workitems/1.xml in the browser

shows the XML for Work Item number 1.

REST Client was is not required.

But I could not see the Approval entries in the XML. How to see the Approval entries. I need to mass update "Approval" in more than 400 work items. Each work item has 4 Approval entries created by "Approval PlugIn" (owned by IBM ISSR USA team.)

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,937

Question asked: Feb 29 '16, 9:14 a.m.

Question was seen: 4,548 times

Last updated: Mar 01 '16, 12:35 p.m.

Confirmation Cancel Confirm