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

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

0 votes



One answer

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

0 votes

Your answer

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,927

Question asked: May 18 '10, 11:37 p.m.

Question was seen: 8,282 times

Last updated: May 18 '10, 11:37 p.m.

Confirmation Cancel Confirm