Get all work items included in a personal build
Wendy Raschke (30●1●11)
| asked Feb 25 '16, 10:36 p.m.
edited Feb 26 '16, 10:34 a.m. by Ralph Schoon (63.5k●3●36●46)
Hello. From an IBuildResultHandle I want to find all the work items checked into the workspace used in a personal build. I have found questions at
https://jazz.net/forum/questions/44127/finding-workitem-from-buildresult and https://jazz.net/forum/questions/112660/how-to-get-changes-out-of-build-api that mention using the com.ibm.team.build.internal.client.workitem.WorkItemHelper class. However, I have called this API's getFixedInBuild() and getIncludedWorkItems() methods, and I always get an empty list, using an IBuildResultHandle representing a personal build using a workspace that I know has outgoing change sets. I don't think getLinkedWorkItems() and getReportedWorkItems() are what I want. I am not looking for work items linked to the build nor those reported against the build. This doesn't strike me as anything too tricky to do. Maybe I am missing something! I realize internal classes can change anytime--so that's why I also tried the code that Nick Edgar excerpted:
But that doesn't work either. :( |
One answer
I doubt if the IBuildResultHandle for personal builds would ever have the reference to changes included in the build. Personal builds just build the current configuration of the workspace and doesn't have the notion of updating the workspace from a flow target like a stream, by which we could determine the changes/work items included in the build.
Thanks, Sridevi Comments Okay, thank you for telling me once and for all so I don't keep beating my head against my keyboard!
Ralph Schoon
commented Feb 26 '16, 10:41 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Personal builds can't be used in this context, basically since the build user can NOT usually create a snapshot or baseline. The build user basically does not have the permission to do so.
|
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.