Ant task to associate an existing work item with a build?
Cliff Gardiner (92●12●34)
| asked Jan 28 '15, 7:52 a.m.
edited Jan 28 '15, 10:12 a.m. by Ralph Schoon (63.5k●3●36●46)
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? |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Feb 27 '15, 4:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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
|
5 other answers
Ralph Schoon (63.5k●3●36●46)
| answered Jan 28 '15, 8:22 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 28 '15, 8:25 a.m.
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. |
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. Comments
Ralph Schoon
commented Jun 03 '17, 10:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For all I know you could use the work item commandl line, as already explained above.
|
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.