It's all about the answers!

Ask a question

How to get non-archived project areas only?


arafath Arafath (1163) | asked Dec 12 '09, 1:33 a.m.
Hi,
I am able to list all the project areas for a repository using the following code? (It includes archived project areas also). I want to exclude the archived project areas from the list. Is there any way i can directly get the list of all project areas excluding the archived list through programatically?


IProcessItemService client = (IProcessItemService) repository
.getClientLibrary(IProcessItemService.class);
List<IProjectArea> projectAreas = null;
projectAreas = client.findAllProjectAreas(
IProcessClientService.ALL_PROPERTIES, null);

Thanks,
Yasar

2 answers



permanent link
Sridevi Sangaiah (59179) | answered Dec 21 '09, 11:17 p.m.
JAZZ DEVELOPER
what version of RTC are you using?


Hi Yasar,

Using IProcessItemService it is not possible to directly get the list of all Project Areas excluding the archived project areas. Instead after fetching the list of all project areas one can exclude the archived project areas by invoking isArchived() function on each of the project area instances.

Thanks
Sridevi
Jazz Process Team

permanent link
Amirsam Khataei (256175) | answered Dec 14 '09, 10:43 a.m.
JAZZ DEVELOPER
what version of RTC are you using?

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.