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.
Code to fetch all changeset within a time duration :
IChangeSetSearchCriteria criteria = IChangeSetSearchCriteria.FACTORY.newInstance();
Timestamp startDateTimeStamp = new Timestamp(startTime);
Timestamp toDateTimestamp = new Timestamp(endTime);
criteria.setModifiedAfter(startDateTimeStamp);
criteria.setModifiedBefore(toDateTimestamp);
criteria.setComponent(componentHandle);
Same is happening in case of BaseLineSearchCreteria : Can I apply projectAreaFilter here while fetching all changeset and baselines ?IBaselineSearchCriteria baselineSearchCriteria = IBaselineSearchCriteria.FACTORY.newInstance(); |
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).
Shiva Tiwari selected this answer as the correct answer
|
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.
Comments
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.
Hi @ Geoffrey Clemm, Thanks for the response
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.