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

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.

1 vote



One answer

Permanent link
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();

}

1 vote

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,937

Question asked: May 24 '12, 1:17 a.m.

Question was seen: 5,708 times

Last updated: May 24 '12, 1:17 a.m.

Related questions
Confirmation Cancel Confirm