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

How to get RTC Project Area information through REST API?

I can query RTC to get all project areas for a particular user via the Draft Team Process Rest API (https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#GET_project_areas_collection) using the "has member" query parameter. This returns data in XML format. I would like to know about the following two things:
1. Is there a way get all project areas for a particular user (a 'has member' equivalent) in JSON format?
2. There are other attributes about a project area, like project duration, project status which can be seen in the web (they may be custom widgets). Is there a way to get this information? Is there any REST API for this?

Thank you very much.

0 votes



2 answers

Permanent link
1. Even I added an HTTP header "Accept: application/json", only the XML format was returned. I believe JSON is not yet supported. The linked document does not mentioned JSON either.
2. I would not call them "attributes" if you cannot see them in the returned HTTP response. Some information may need calculation and you have to do the same.

0 votes

Comments

 Thank you, Donald!


Is there a way to access the widget information of a particular template? How is this information stored?

Sorry I don't know any ways to do this. As far as I understand, some widgets involve calculation and getting information several times. I also believe that some information cannot be retrieve using REST API anyway.


Permanent link
I added an HTTP header "Accept: application/text" to my https://server:9443/admin/projects Rest call but I get JSON represenation of the result.

But when I call this URI from browser, I got an XML representaion.

How can we get this call's reponse in xml format?

0 votes

Comments

Are you sure you got an XML response in the browser? I always get a JSON response not matter what clients I use. And it is expected according to the specification.
https://jazz.net/wiki/bin/view/Main/DraftLPARestAPI#GET_projects_service

Get the list of lifecycle projects in the repository, as JSON text.

Sorry Donald I mis-wrote my message.

As you said I always got JSON representation of this call. I need it in XML format.
I had difficulties parsing JSON.

 Arne posted a nice short answer that showed how to parse json easily


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,938
× 479

Question asked: Feb 16 '14, 7:21 p.m.

Question was seen: 8,555 times

Last updated: Mar 13 '14, 8:27 a.m.

Confirmation Cancel Confirm