Listing snapshots of a Project Area and Team Areas
Hi Everyone,
Using the API, I want to list all snapshots from a Project Area and its children (Team Area Hierarchy).
Can I achieve this with a single search?`
The only solution I found til now is to search in every Team area of the hierarchy and append the results together.
This is my current code:
public List<IBaselineSetHandle> getSnapshotsFromProcessAreaAndChildren(final IProjectArea projectArea { public List<IBaselineSetHandle> getSnapshotsFromProcessArea( final IProcessAreaHandle processAreaHandle) throws Exception { IBaselineSetSearchCriteria searchCriteria = IBaselineSetSearchCriteria.FACTORY.newInstance(); searchCriteria.setProcessArea(processAreaHandle); return getWorkSpaceManager().findBaselineSets(searchCriteria, Integer.MAX_VALUE, monitor); } |
One answer
Hi Diogo,
As far as I know, you need to repeat for each team area like you do. I used to do a same thing. I am guessing you are doing a right way.
|
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.