It's all about the answers!

Ask a question

How to get "Planned For" value of a work item.


Satwant Dharni (11) | asked Nov 11 '19, 1:40 p.m.

 I need help in getting "Planned For" value of work Item. I see there is function getTarget() which returns IIterationHandle but then how get string value of what is currently set.

Accepted answer


permanent link
Ralph Schoon (63.2k33646) | answered Nov 12 '19, 3:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Nov 12 '19, 3:41 a.m.
Ralph Schoon selected this answer as the correct answer

Comments
Satwant Dharni commented Nov 12 '19, 12:39 p.m. | edited Nov 13 '19, 3:20 a.m.

 Still not able to find the solution, if someone provide more details hoe to get "Planned For" attribute value in string.


Ralph Schoon commented Nov 13 '19, 3:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

One other answer



permanent link
Satwant Dharni (11) | answered Nov 15 '19, 11:58 a.m.
edited Nov 15 '19, 11:59 a.m.

 Thanks all, finally worked. Here is my code.


IIterationHandle targetHandle = workItem.getTarget();

IIteration iIteration = (IIteration) teamRepository.itemManager().fetchCompleteItem(targetHandle,

                                IItemManager.DEFAULT ,monitor);

String targetValue = iIteration.getId();

System.out.println("Target Release ID=" + targetValue );


Your answer


Register or to post 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.