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

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. 

0 votes



2 answers

Permanent link

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.

0 votes


Permanent link

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?

:)

0 votes

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
× 411
× 169
× 89

Question asked: Jul 11 '17, 4:50 p.m.

Question was seen: 3,036 times

Last updated: Jul 12 '17, 10:20 a.m.

Confirmation Cancel Confirm