Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 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.

0 votes


Accepted answer

Permanent link

See you need to resolve the handle.


Ralph Schoon selected this answer as the correct answer

0 votes

Comments

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


One other answer

Permanent link

 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 );


0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Nov 11 '19, 1:40 p.m.

Question was seen: 1,113 times

Last updated: Nov 15 '19, 11:59 a.m.

Confirmation Cancel Confirm