How to get object from handle using RTC Java API
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
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.
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.
Comments
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?
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().