It's all about the answers!

Ask a question

How to get object from handle using RTC Java API


Rachel Biderman (42611) | asked Aug 27 '13, 4:49 a.m.
 Hi
i am trying to write code using the RTC Java API,but the documentation is not having samples to explain how do i get an object from an handle.
For example if i have ITeamAreaHandle - how do i get to the TeamArea itself (for list of members)
Or if i get ICategoryHandle, how do i access the object ICategory.

Thanks
Rachel

Accepted answer


permanent link
Lauren Hayward Schaefer (3.3k11727) | answered Aug 27 '13, 6:56 a.m.
JAZZ DEVELOPER
Hi Rachel,

https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation has an example of how to go from a work item handle to a work item.  https://jazz.net/forum/questions/48967/programmatic-get-of-all-teamareas-in-a-project walks through how to get team areas from team area handles.
Rachel Biderman selected this answer as the correct answer

Comments
Rachel Biderman commented Aug 27 '13, 8:05 a.m.

Thank you, this helps.

so it is pretty basic mechanism: use fetchCompleteItem with the right handle, will return the matching object instance, right?
One more question: Can i use: fetchCompleteItem also on server side?


Lauren Hayward Schaefer commented Aug 28 '13, 6:53 a.m.
JAZZ DEVELOPER

Hi Rachel,
I found this in the forum post:
If your code is running in server side, you can use
IRepositoryItemService.fetchItems() to retrieve the real team areas. If
your code is running in client side, you can use
IItemManager.fetchCompleteItem().

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.