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

Is it possible to retrieve Master Project Area name using RTC 6.0 api's ?

Currently we are able to retrieve the Child Project Area details using RTC api's.

We wanted to retrieve Master Project Area details (specifically name) when Child Project Area is connected to any master project area.

We found the api to get project area :

Modifier and Type : IProjectAreaHandle

Method - Description : getProjectArea() - Returns the project area this attribute belongs to. 

As per above method description "Returns the project area this attribute belongs to", here attribute belongs to Child Project Area.

Is it possible to directly get Master Project Area name (which is connected to the Child Project Area) without changing the attribute which belongs to Child Project Area using RTC api's from coding perspective.  

0 votes


Accepted answer

Permanent link
 https://rsjazz.wordpress.com/2014/11/28/the-process-sharing-api/
Kartik Shah selected this answer as the correct answer

0 votes


One other answer

Permanent link
well, once you have the handle, like always, you have to load the properties for the object by using one of the auditable or fetch methods

my code from the accepted answer here https://jazz.net/forum/questions/159700/is-it-possible-to-migrate-an-rtc-project-area-to-a-different-process-parent-programmatically

 IProjectArea parentProject = (IProjectArea) (repo
                                .itemManager().fetchCompleteItem(iparenthandle,
                                IItemManager.DEFAULT, sPm));
                        System.out.println("have parent project name = "
                                + parentProject.getName());

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
× 1,220

Question asked: Jul 22 '15, 10:42 a.m.

Question was seen: 2,835 times

Last updated: Jul 22 '15, 12:44 p.m.

Confirmation Cancel Confirm