It's all about the answers!

Ask a question

Working with handles


yogesh arora (86102) | asked Jan 05 '09, 5:36 p.m.
How can i get the originating full object from handles like IProjectAreaHandle, IContributorHandle, IWorkItemHandle.

One answer



permanent link
Daniel Kogan (51) | answered Jan 06 '09, 1:09 p.m.
The object can be fetched using the handle with
IRepositoryItemService on the server and
ItemManager from the client side.

Here are some of the examples and tutorials:
- https://jazz.net/learn/LearnItem.jsp?href=content/docs/client-library-programming/index.html
- https://jazz.net/wiki/bin/view/Main/ComponentDevelopment
- https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough

<snip>
... from https://jazz.net/wiki/bin/view/Main/JazzTalkWalkthrough

IRepositoryItemService repositoryItemService = getService(IRepositoryItemService.class);
IItem[] items = repositoryItemService.fetchItems(itemQueryPage.handlesAsArray(), null);
</snip>

Dan Kogan

How can i get the originating full object from handles like IProjectAreaHandle, IContributorHandle, IWorkItemHandle.

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.