It's all about the answers!

Ask a question

how to get the active project areas by java API

Harish Raj (1131619) | asked Nov 21 '12, 3:01 a.m.
edited Mar 12 '13, 9:32 a.m. by Ralph Schoon (62.9k33645)
How to get the active project areas by java API (may be in an ArrayList)?

Martin Dam Pedersen commented Nov 21 '12, 5:46 a.m.

What is the context in which you are trying to get project areas(serverside advisor/contributor, plain java client application or something else) ? 

Harish Raj commented Nov 21 '12, 7:44 a.m. | edited Nov 21 '12, 7:45 a.m.

I was looking for plain java client only. Thank you.

Accepted answer

permanent link
Martin Dam Pedersen (1352814) | answered Nov 21 '12, 6:15 a.m.

From a plain java client you could do the following:

IProcessItemService service = (IProcessItemService) repository.getClientLibrary(IProcessItemService.class);
List<IProjectArea> activeProjectAreas = new ArrayList();
List<IProjectArea> allProjectAreas;
projectAreas = service.findAllProjectAreas(service.ALL_PROPERTIES,monitor);
for (Iterator<IProjectArea> iterator = projectAreas.iterator(); iterator.hasNext();) {
 IProjectArea iProjectArea =;
 if (iProjectArea.isArchived()==false) {
Harish Raj selected this answer as the correct answer

One other answer

permanent link
Pancha Gyaneswari Yelika (45811) | answered Jan 07 '13, 3:33 a.m.

Could you please provide the api for the server side Participant to get the project areas..
this would be of great help.


Martin Dam Pedersen commented Mar 12 '13, 6:52 a.m.

  public void run(AdvisableOperation operation,

IProcessConfigurationElement participantConfig,
IParticipantInfoCollector collector, IProgressMonitor monitor)
throws TeamRepositoryException {
IProcessArea processArea = operation.getProcessArea();
iProjectAreaHandle = processArea.getProjectArea();

Your answer

Register or to post your answer.