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

Report Builder: extract reports in json format

Hi, hi have some reports in Report Builder which I would like to extract via http request in json format. It is possible?


This is what I've done: 
curl -k -L -H "Accept: application/json" -H "Content-Type: application/json"  -b ./cookies.txt -c ./cookies.txt 'https://server/rs/query/347/dataservice?limit=-1&report=<report-id>' -o 'report.json'

But, with this request the server give me a xml file.

0 votes



One answer

Permanent link

 Hi Andrea,

I'm not a Report Builder developer and there's no publicly consumable API supported for that app. With those caveats, I'd guess that RB will not return JSON if requested. These are OSLC-based APIs and while they must return something in an acceptable OSLC format (XML, JSON, Turtle, etc), they don't have to return something in the requested format. AFAIK, CLM applications return XML almost exclusively. You'll probably need to parse the XML directly or convert it to JSON from XML.

0 votes

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
× 230

Question asked: Oct 12 '17, 11:19 a.m.

Question was seen: 2,948 times

Last updated: Oct 17 '17, 6:00 p.m.

Confirmation Cancel Confirm