Query ChangeSets of specific ProjectArea / TeamArea
![]()
Hi!
I want to generate Users Activity Reports depending on their Check-In behavior using plain java api.
Therefore I need to Query ChangeSets by User and ProjectArea / TeamArea.
I found out how to query for a user's ChangeSets by using IChangeSetSearchCriteria.setAuthor(...)
How can i further restrict the query to a special ProjectArea / TeamArea?
Atm I'm doing the following:
IChangeSetSearchCriteria criteria = IChangeSetSearchCriteria.FACTORY.newInstance(); criteria.setAuthor(member); criteria.setModifiedAfter(new Timestamp(from.getTime())); List<IChangeSetHandle> changeSets = SCMPlatform.getWorkspaceManager( repo).findChangeSets(criteria, IWorkspaceManager.MAX_QUERY_SIZE, monitor);
// Available Parameters in this Method are IContributorHandle member, ITeamRepository repo, Date from, // Date to, IProjectArea area (the ProjectArea the ChangeSets should belong to)
|