It's all about the answers!

Ask a question

Query to see the change sets sizes


Zica Valsan (10124445) | asked Dec 07 '12, 6:53 a.m.
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



permanent link
Andrew Niefer (6385) | answered Dec 13 '12, 11:59 a.m.
JAZZ DEVELOPER
edited Dec 13 '12, 4:31 p.m.
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


Register or to post your answer.