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

During fetching Owner Name Getting the value of repository as null

I want to fetch the owner name and ID.Here am getting value of repository as null following is my code.

  IProjectAreaHandle projectArea = workItem.getProjectArea();
 ITeamRepository repository=(ITeamRepository) projectArea.getOrigin();
 IContributorHandle iContributorHandle = workItem.getOwner(); 
 IContributor iContributor=(IContributor)repository.itemManager().fetchCompleteItem(iContributorHandle, 
                 IItemManager.DEFAULT, monitor); 
 System.out.println(iContributor.getName()); 

please let me know how to get the repository.

0 votes


Be the first one to answer this question!

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: Jan 17 '17, 4:52 a.m.

Question was seen: 1,049 times

Last updated: Jan 17 '17, 4:54 a.m.

Confirmation Cancel Confirm