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 (63.1k33646) | answered Jul 22 '15, 12:37 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
 https://rsjazz.wordpress.com/2014/11/28/the-process-sharing-api/
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 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());


Your answer


Register or 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.