RTC Plain Java API - Find BuildResult id based on ChangeSet id or WorkItem id
I'm using the RTC's Plain Java API.
In my program, I have a list of WorkItems and their associated ChangeSets.
I need to check if each ChangeSet was successfully built.
Each ChangeSet can be found in multiple BuildResults.
Is there a way to query for the associated BuildResults (and retrieve their ids) based on WorkItem Id or (preferably) ChangeSet Id?
In the web version of RTC, I can view "Included in Builds" for each work Item. How can I grab that list using the Plain Java API?
Accepted answer
The Included in builds is just another link type. See https://rsjazz.wordpress.com/2012/09/19/the-rtc-workitem-link-api-linking-workitems-to-other-elements/ for the link API. https://rsjazz.wordpress.com/2017/03/29/the-work-item-command-line-is-now-open-source/ also has examples for how to use link aPI.