How to get Owner and Creator by RTC API
I try this to get workitem owner and creator:
IWorkItem fetchCompleteItem=(IWorkItem)teamRepository.itemManager().fetchCompleteItem(next, IItemManager.DEFAULT, monitor); System.out.println("owner:"+fetchCompleteItem.getOwner()+",creator:"+fetchCompleteItem.getCreator()); The output is: owner:com.ibm.team.repository.common.model.impl.ContributorHandleImpl@6add6add (stateId: <unset>, itemId: , origin: com.ibm.team.repository.client.internal.TeamRepository@352d352d, immutable: true) How can I get the workitem owner and creator? How can I find workitem by owner? Thanks a lot.... |
4 answers
IWorkItem
fetchCompleteItem=(IWorkItem)teamRepository.itemManager().fetchCompleteItem(next, IItemManager.DEFAULT, monitor); System.out.println("owner:"+fetchCompleteItem.getOwner()+",creator:"+fetchCompleteItem.getCreator()); The output is: owner:com.ibm.team.repository.common.model.impl.ContributorHandleImpl@6add6add (stateId: <unset>, itemId: , origin: com.ibm.team.repository.client.internal.TeamRepository@352d352d, immutable: true) now get the How can I get the workitem owner and creator ' s name and other attributes from above result? or any other methods can get it by a work item id |
is there anyone can reply this~~~~~~~ waiting waiting ......
calling ~~~~~~~~jazz ft today I also met the question as sunshch written I try this to get workitem owner and creator: |
today I also met the question as sunshch written
can anyone tell me "How can I get the workitem owner and creator? " :( thanks very much is there anyone can reply this~~~~~~~ waiting waiting ...... now use method "fetchCompleteItem.getOwner()" to got the owner and creator was a object as IContributorHandle how to get the user name and other attributes?? I try this to get workitem owner and creator: |
I try this to get workitem owner and creator: I believe that the extensibility forum is a better place for your question. Dekel |
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.