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

How to query specific buildResult from RTC by using REST

Hi,
Is there anyway to query specific buildResult from RTC 3.0 by using REST API? If there is, it would be good if you can provide the sample code. Thank you in advance.

0 votes



3 answers

Permanent link

i have found these workitem

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=73070

and got it working on RTC 3.0.1

these two link works in my env,

http://teamconcert.danskenet.net/jazz/resource/virtual/build/resultpresentation/_oUQeEKKcEeKayZR-ISVoSw?_mediaType=text/json&_prettyPrint=true

http://teamconcert.danskenet.net/jazz/resource/virtual/build/result/_oUQeEKKcEeKayZR-ISVoSw?_mediaType=text/json&_prettyPrint=true

_oUQeEKKcEeKayZR-ISVoSw need to be a valid BuildResult UUID

0 votes


Permanent link
Here's an example (for our 4.0.3 M3 build for RTC itself):
https://jazz.net/jazz/resource/virtual/build/resultrecord/_U0qu0JK3EeKSpIQ-W8HL4A?_prettyPrint=true

The _prettyPrint query arg is just for debugging, not used in production (e.g. by the web UI)

Note that the Build REST interface is internal, not API, so there's not a lot of doc about it.  It's mainly there to support the web UI and Visual Studio client.
What kind of info are you looking to extract?

0 votes

Comments

You can figure out a fair bit about it by looking at AJAX requests made by the web UI, e.g. using Firebug with Firefox.

 

You could also use the Java client API to query builds.  See

 


Permanent link
i'm using the REST api resource/virtual/build/resultpresentation/<uuid>?_mediaType=text/json to get the workitems included in the buildresult. and it works nicely for me.

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

Question asked: Aug 20 '12, 2:22 a.m.

Question was seen: 4,417 times

Last updated: Apr 14 '13, 9:48 a.m.

Confirmation Cancel Confirm