How to Get Included Work Item ID in Builds
![](http://jazz.net/_images/myphoto/4e0cfa63862cc688988084744566ee10.jpg)
Hi,
One of my customer uses an extension to trigger a build when a work item reaches a specific state (actually it is the extension in RTC extension lab). The build has post-delivery options to deploy successful build outcomes with UrbanCode Deploy. That part works fine. However, my customer asks to move the work item which is included in build to next state after successful deployment. In that case, I have to pass work item ID in builds to UrbanCode Deploy (UCD) and use UCD RTC plugin to move it to next state. However, I couldn't find the required build parameter for work item ids.
Could you please help me?
Thank you.
Accepted answer
![](http://jazz.net/_images/myphoto/4e0cfa63862cc688988084744566ee10.jpg)
Hi,
I added a property (RTCBuildResultUUID=${buildResultUUID}) to build definition which helps me to pass build result UUID to UrbanCode Deploy as a component version property. I also developed a utility with RTC's Plain Java API. The utility finds included work items in build according to buildResultUUID and change their status. I added that utility as UCD component process step. That solved my question/problem.
Thank you.
Comments
Lakshmi Narasimhan T V
JAZZ DEVELOPER Mar 12 '21, 5:43 a.m.To clarify, do you need the work items included in a given build through API? If yes, you can enumerate the build result contributions looking for a contribution with extended type id as "fixedWorkItems" and get the work item handles from there. Another option is to use the ILinkService to query for included in build links for a given build result reference.
Kurtulus YILDIRIM
Mar 12 '21, 7:16 a.m.Hi Lakshmi,
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 12 '21, 7:20 a.m.Hi Kurtulus,