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?
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?
Accepted answer
I tested and realized I got the direction of the build links wrong. Here is the fixed version.
5 other answers
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.
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.
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?