how to get all the streams under one projectArea?
Accepted answer
Workspaces are owned by users. Streams are owned by project areas or team areas.
Searching for a bunch of the SCM items is done using search criteria.
https://rsjazz.wordpress.com/2013/09/24/managing-workspaces-streams-and-components-using-the-plain-java-client-libraries/ shows examples for this API. You would likely have to use com.ibm.team.scm.common.dto.IWorkspaceSearchCriteria.setExactOwnerName(String).
Comments
Note: IWorkspaceSearchCriteria.setExactOwnerName(String) would work, but if you wrote your code with a hardcoded stream name, then there is a risk that the stream is renamed at a future date resulting in nothing being returned by the query.
To avoid this, you could call: IWorksapceSearchCriteria.getFilterByOwnerOptional().add(streamHandle);
Thanks David!