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

Ant task to associate an existing work item with a build?

We have a hands-off build process that mandates a work item to record the build against, but following a successful build we have to manually click on 'Associate an existing work item' to tie the build result to the work item.  We have CLM 4.0.7 but I can see in the docs that this is also true for 5.0.2.

I would like to do this programmatically in the build file but the supplied Ant tasks don't provide this.  If anybody knows a method to do this I'd be delighted to hear, or if they have developed a custom Ant task that they'd be prepared to share.  My only other recourse is to request a product enhancement and that could take months or years, assuming it's accepted as 'a good thing to do'!

Can anybody help?

0 votes


Accepted answer

Permanent link
I tested and realized I got the direction of the build links wrong. Here is the fixed version.
Ralph Schoon selected this answer as the correct answer

0 votes


5 other answers

Permanent link
Cliff,

I created a work item command line https://rsjazz.wordpress.com/2015/01/12/a-rtc-workitem-command-line/ that can do it. I am currently working on a next version that fixes some bugs and enhances the capabilities. The current version should at least allow you to create a work item including that link from the build result ID.

0 votes


Permanent link
Thanks Ralph,

I'll have a look.  We don't need to create the work item, just the link but what you're describing should do the trick.

0 votes

Comments

If you have the work item ID, you can modify the work item and create the link too.


Permanent link

Hi Ralph, this is great and very close to what I'm after.  However using link_reportAgainstBuild to link the build result to the work item creates in the work item a link type of 'Work items reported against this build' rather than 'Reported Against Builds', which is what I really want.  A further problem is that this link type does not appear in the Quick Information and there is no option I can find when editing the Quick Information to make it appear. 

Have I missed something, or do I need to get to grips with amending WCL?

0 votes

Comments

What link type do you need? Can you provide a screenshot from the links tab and the overview tab? 


Permanent link
Many thanks Ralph.  There are download restrictions where I work but I'll try this as soon as I can get the code on site.

0 votes

Comments

Thanks for helping with testing. I just can't get all kinks when testing myself.


Permanent link

Hi Cliff, Ralph is it possible to get a copy of the implementation you created for updating a specific workitem with a link from the build. So that as you execute the JBE ant script, the build links itself to the 'Reported Against Builds' of a specific work item.

Thanks.

0 votes

Comments

For all I know you could use the work item commandl line, as already explained above.

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

Question asked: Jan 28 '15, 7:52 a.m.

Question was seen: 5,283 times

Last updated: Jun 03 '17, 10:51 a.m.

Confirmation Cancel Confirm