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



4 answers

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

0 votes


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

0 votes


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

0 votes


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

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
× 38

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

Question was seen: 13,365 times

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

Confirmation Cancel Confirm