How to get the value of Planned for?
Hi,
i am using plain java client for fetching all work items and its values. More over i have found the solution for fetching all attribute values. But i am unable to get the value of Planned for attribute. Please suggest any solution. |
One answer
Hi,
I have found the solution. check my code below. public static String getPlannedForValue(IWorkItem workitem) { ITeamRepository repository = RepositoryManager.getInstance().getCurrentRepository(); IItemManager itm = repository.itemManager(); IIteration contributor = null; try { contributor = (IIteration) itm.fetchCompleteItem(workitem.getTarget(), IItemManager.DEFAULT, null); } catch (TeamRepositoryException e) { // TODO Auto-generated catch block e.printStackTrace(); } return contributor.getName(); } |
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.