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.
I also would like to know the hierarchy and the difference between the next elements:
- Process Area
- Project Area.
- Team Area
Thanks in advance.
2 answers
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
thanks for the answer, but the plug in we are developing runs on the server side thus we do not have access to the class ITeamRepository because its defined as a client class inside the package com.ibm.team.repository.client.
Is there a way to achieve the same result but using only server side classes?
:)