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

4 answers



permanent link
Dekel Cohen (14681) | answered Jun 10 '10, 11:35 a.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....


I believe that the extensibility forum is a better place for your question.

Dekel

permanent link
wu zy (261) | answered Nov 15 '11, 7:27 a.m.
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:

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

permanent link
wu zy (261) | answered Nov 18 '11, 7:07 a.m.
is there anyone can reply this~~~~~~~ waiting waiting ......

calling ~~~~~~~~jazz ft



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:

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

permanent link
wu zy (261) | answered Nov 18 '11, 7:14 a.m.
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

Your answer


Register or to post your answer.