It's all about the answers!

Ask a question

How to get work items associated with builds and changesets through the REST API


Mike Shkolnik (9807160143) | asked Jul 16 '13, 7:42 p.m.
So far I have figured out how to get lists of Work Items, Builds, and Change Sets via the REST API. Problem is I can't figure out how to get any associations. For example, when folks create change sets, they associate them with a work item. Then the change sets are associated with builds. Thus I should be able to pull a list of builds and their associated work items (via the change sets contained in the builds). But I can't see how to get those associations via the REST API. Any ideas?

Get a list of work items with history:
https://SERVER:9443/jazz/rpt/repository/workitem?fields=workitem/workItem/(id|summary|target/name|duration|itemHistory/(target/name|modified|modifiedBy/name))

Get a list of Change Sets:
https://SERVER:9443/jazz/rpt/repository/scm?fields=scm/changeSet/(owner/name|modified|modifiedBy/name|comment)

Get a list of Builds:
https://SERVER:9443/jazz/rpt/repository/build?fields=build/buildResult/(label|buildStatus|buildDefinition/(id|description)|personalBuild|buildEngine/*)

One answer



permanent link
Lauren Hayward Schaefer (3.3k11427) | answered Jul 18 '13, 7:32 a.m.
JAZZ DEVELOPER
Hi Mike,

I found this forum post that you might find helpful:  https://jazz.net/forum/questions/47527/access-build-information-from-oslc?redirect=%2Fforum%2Fquestions%2F47527%2Faccess-build-information-from-oslc.  The information is a bit old, so you might want to add a comment asking Nick if anything has improved since.

Your answer


Register or to post your answer.