Project Area Filter While Fetching changeset and baselines for a component (RTC Enterprise version 6.0.4)
I am using plain Java api to fetch all changeset for a component within a projectArea. But If a component has been added across the project then by using changesetSearchCriteria it gives me changeset for all project areas.
Same is happening in case of BaseLineSearchCreteria :
Can I apply projectAreaFilter here while fetching all changeset and baselines ?IBaselineSearchCriteria baselineSearchCriteria = IBaselineSearchCriteria.FACTORY.newInstance();
baselineSearchCriteria.setModifiedAfterOptional(new Date(startTime));baselineSearchCriteria.setModifiedBeforeOptional(new Date(endTime));baselineSearchCriteria.setComponentRequired(componentHandle);</pre> <blockquote> <pre style="background-color:#ffffff; color:#000000; font-family:'Menlo'; font-size:9.0pt;"> </pre> </blockquote>
Accepted answer
No, there is no way to use the IChangeSetSearchCriteria or IBaselineSetSearchCriteria and have it filtered by Project Area. Like Geoffrey already said in the comment, change sets and baselines are not associated / scoped to a particular project area. Change sets and Baselines essentially 'live' inside a component, which 'can' have the owner be a project area, but this is only to provide access control on the component (and this ownership can easily be changed to a different project area).
You might have better luck scoping to a particular stream if that might work for you.
Comments
Shiva Tiwari
Jan 31 '18, 6:09 a.m.Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 31 '18, 10:13 a.m.A component is not "within" a project area. It can have a project area "owner" property, but that just determines the access control on the component. The component can be added to any stream in any project area by a user that has read access to that component and write access to that stream. Similarly, a change set is not "within" a project area ... it is within a component.
Shiva Tiwari
Feb 01 '18, 11:42 p.m.Hi @ Geoffrey Clemm, Thanks for the response
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Feb 05 '18, 3:38 p.m.Neither a change set or a baseline is associated with a project area, so "filtering change sets and baselines of a component by project area" doesn't mean anything.