It's all about the answers!

Ask a question

During fetching Owner Name Getting the value of repository as null


Girish Jangame (1117) | asked Jan 17 '17, 4:52 a.m.
edited Jan 17 '17, 4:54 a.m. by Ralph Schoon (61.8k33643)
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.

Be the first one to answer this question!


Register or to post your answer.