Query to see the change sets sizes
Hello,
is there any way to find the sizes of the change sets by using a query in RTC 3.x and RTC 4.x? Is there a way to query on the time stamp they were delivered to the stream? As background info: our customer needs to do some analysis on the change set sizes introduced late in the development and test cycle, when the development iteration was already closed. Thank you, Zica |
One answer
Plain Java Client Libraries API documentation can be downloaded from jazz.net.
You will want to look at IWorkspaceManager.findChangeSets which takes an IChangeSetSearchCritiera which specifies the criteria you are searching for. In particular you can set a modifiedAfter timestamp to find changesets modified after a particular date. IChangeSetSearchCriteria criteria = IChangeSetSearchCriteria.FACTORY.newInstance(); criteria.setComponent(myComponent); criteria.setModifiedAfter(interestingTime); List<IChangeSetHandle> changeSetHandles = workspaceManager.findChangeSets(criteria, IWorkspaceManager.MAX_QUERY_SIZE, null);To find the sizes of the changeSets you will need to fetch the full IChangeSet objects: IItemManager itemManager = repository.itemManager(); List<IChangeSet> changeSets = itemManager.fetchCompleteItems(changeSetHandles, IItemManager.DEFAULT, null);IChangeSet.changes() is the list of individual changes in the change set. |
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.