It's all about the answers!

Ask a question

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

Kartik Shah (1313) | asked Jul 22 '15, 10:42 a.m.

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.  

Accepted answer

permanent link
Ralph Schoon (62.9k33645) | answered Jul 22 '15, 12:37 p.m.
Kartik Shah selected this answer as the correct answer

One other answer

permanent link
sam detweiler (12.5k6195201) | answered Jul 22 '15, 12:39 p.m.
edited Jul 22 '15, 12:44 p.m.
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

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

Your answer

Register or to post your answer.