Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

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

0 votes

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

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

Question asked: Aug 27 '13, 4:49 a.m.

Question was seen: 6,798 times

Last updated: Aug 28 '13, 6:53 a.m.

Confirmation Cancel Confirm