How to get "Planned For" value of a work item.
Accepted answer
See you need to resolve the handle.
- https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/
- https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/
- https://rsjazz.wordpress.com/2013/01/02/working-with-work-item-attributes/
Comments
Still not able to find the solution, if someone provide more details hoe to get "Planned For" attribute value in string.
In the client API see https://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ section RESOLVING ITEM HANDLES
To see how to resolve item handles in the client API.
One other answer
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 );