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

How to Get Included Work Item ID in Builds

 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.

0 votes

Comments
Hi Kurtulus,

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.

Hi Lakshmi,

Actually, no. I need work items included in given build as a build property, not through an API.
Thank you. 

Hi Kurtulus,


I still do not understand what you are asking for. You might want to spend some time in editing and clarifying your initial question.


Accepted answer

Permanent link

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.

Ralph Schoon selected this answer as the correct answer

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

Question asked: Mar 08 '21, 12:20 p.m.

Question was seen: 935 times

Last updated: Apr 06 '21, 1:09 p.m.

Confirmation Cancel Confirm