Retrieving archived projects
2 answers
You can IProcessItemService to get all project areas including archived
ones. And then use "isArchived()" method to find the archived project
areas. The following is the sample code:
ITeamRepository teamRepository =
YOUR_TEAM_REPOSITORY_CONNECTION
IProcessItemService service = (IProcessItemService)
teamRepository.getClientLibrary(IProcessItemService.class);
List projectAreaList =
service.findAllProjectAreas(IProcessClientService.ALL_PROPERTIES,
monitor);
// for each project area, use isArchived() to check whether
this is an archived project area or not.
ones. And then use "isArchived()" method to find the archived project
areas. The following is the sample code:
ITeamRepository teamRepository =
YOUR_TEAM_REPOSITORY_CONNECTION
IProcessItemService service = (IProcessItemService)
teamRepository.getClientLibrary(IProcessItemService.class);
List projectAreaList =
service.findAllProjectAreas(IProcessClientService.ALL_PROPERTIES,
monitor);
// for each project area, use isArchived() to check whether
this is an archived project area or not.