Customizing the link between work items and the build
CLM 502
All,
I can see what work items are in the build from the results page. I can run a query for "Included in builds", but how do I simply do the following:
- Label or append to the build the number (x.y.z)
- Query, or append to the work items the number (x.y.z)
I'm looking for something more automated. I know I can put xyz in the tags for all of these, but I am just wondering if there was something that I am missing that may be a quick and easy solution to add to an Ant script or something via Eclipse..or something.
In the end, I want
build 20141223-1502_502
Run a query for all work items in 502
thanks
Accepted answer
Hi Sterling. For updating the build label and/or tags, you can use the buildResultPublisher Ant task. The label assigned by JBE is available in the buildLabel Ant property, so you could use e.g. <buildResultPublisher … buildResultUUID="${buildResultUUID}" buildLabel="${buildLabel}-${releaseVersion}"/>, assuming the existence of a releaseVersion property, which could be added either in the build script (if you want it under SCM) or as a build property in the build definition.
For querying all work items associated with a given version, you probably will need to somehow tag the work items themselves, rather than querying via builds, since it's normal for intermediate builds to get pruned. The work item links are generated after the SCM accept is performed. If this is done by JBE as usual, this would happen before your script had a chance to update the build label, so the links would not contain the new build label in their endpoint labels (the Eclipse UI gets the latest label when possible, so you don't normally see the labels stored on the link unless it can't get the latest label, e.g. if the build was deleted).
Comments
One other answer
Hello,
not sure I fully understand what you want to achieve / what is missing here.
May you please provide more details?
Thanks,
Eric