Getting IProcessArea using Plan Java API
We are working with RTC 6.0.3, developing a plug in using the Plain Java API over a server. As part of the process the plug in has to execute I need the project area object of a work item the user just saved. The only thing I can get from the work item is an object of type IProjectAreaHandler, and I want to be able to access the object IProjectArea but do not kwon how to access it.
|
2 answers
Ralph Schoon (63.6k●3●36●46)
| answered Jul 12 '17, 3:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jul 12 '17, 3:27 a.m. Handles need to be resolved. One way to get is is using the IItemManager that you can get in different ways e.g. from a handle.
(IProjectArea) ((ITeamRepository) handle.getOrigin()) .itemManager().fetchCompleteItem(handle, IItemManager.DEFAULT, monitor);There is no Hierarchy as such, ProcessArea is more generic as Project Area and TeamArea are a ProcessArea. IProject Area and ITeamArea have slightly different methods, You will have to look at them yourself. There are multiple api examples in https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and the related posts in that blog. |
Hi Ralph
|
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.