It's all about the answers!

Ask a question

How to get Owner and Creator by RTC API


shichao sun (6111) | asked May 18 '10, 11:37 p.m.
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....

One answer



permanent link
Gail Burati (611) | answered May 19 '10, 12:35 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Moved from Social Software and Document Collaboration Forum.

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....

Your answer


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.