It's all about the answers!

Ask a question

During fetching Owner Name Getting the value of repository as null


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


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.