How to get non-archived project areas only?
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
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
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