How to get Iteration id out of it's UUID ?
Hello,
I want to get iteration id value out of work-item field. itemCopy.getTarget().getItemId(); itemCopy.getValue(TargetAttribute).toString().trim(); both gives me the UUID of the iteration but I need it's name. How can I get the iteration name out of it's UUID ? Thanks. |
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Jul 10 '13, 9:30 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 10 '13, 9:32 a.m.
Please see the article https://jazz.net/library/article/807
It has the ID of a build result creates a handle from the UUIDand fetches the information. The code for an iteration should be similar. This should work on client and on the server (using a service and not the itemmanager) IBuildResultHandle resultHandle = (IBuildResultHandle) IBuildResult.ITEM_TYPE.createItemHandle(UUID.valueOf(buildResultID), null); ArrayList Yehiel Glass selected this answer as the correct answer
Comments You might also be interested in https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/
Yehiel Glass
commented Jul 18 '13, 10:01 a.m.
Thanks Ralph ! My code:
IIterationHandle plannedForField = item.getTarget(); IIteration iteration = (IIteration) itemService.fetchItem(plannedForField, null); String iterationLabal = iteration.getLabel();
|
One other answer
Hi Yehiel, There are a few jazz.net questions similar to this. Not sure if they are helpful here: https://jazz.net/forum/questions/65253/create-or-delete-iteration-and-timelines-programatically https://jazz.net/forum/questions/90099/how-to-get-and-set-the-iteration-targetid-using-java-api Comments
Yehiel Glass
commented Jul 10 '13, 9:17 a.m.
Hello Kot, I saw the links and can get the development line label:
operation.getDevelopmentLine().getLabel(); but i get the current iteration while I need to have the iteration lable that was choosen in the Work-item . How can I get the string in the field "planned for" in the Work-item ? Thanks, Yehiel |
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.