Welcome to the Jazz Community Forum
API - Get change set list of a Stream ?

Accepted answer

List<ChangeHistoryEntry> ChangeHistoryWithBaselinesResult#getChangeHistoryEntries()
Comments

can you provide the operation history API details (Stream). I need to know count how many change sets delivery happening on the stream daily.

1 vote

Hello Shashikant,

The IWorkspaceConnection#fetchChangeHistoryWithBaselines(...) was added in 701. Which version are you using?

We are still using 6.0.6.1 :(

Hallo Shashikant ,

Sorry, I couldn't respond earlier as I was on leave.
You can do the following:
IWorkspaceConnection wsConn = SCMPlatform.getWorkspaceManager(teamRepository).getWorkspaceConnection(workspaceHandle, progress);
IChangeHistory changeHistory = IWorkspaceConnection#changeHistory(componentHandle);
while (changeHistory != null) {
List<IChangeHistoryEntryChange> recentHistory = changeHistory.recent(null);
// loop through the recent history list and get the change set handles: IChangeHistoryEntryChange#changeSet() and pass it to the below method
List<IChangeSet> changeSets = repository.itemManager().fetchCompleteItems(changeSetHandles, IItemManager.DEFAULT, progress);
// process more in the history
changeHistory = changeHistory.previousHistory(progress);
}

Hello Shashikant,

for (IChange change : (List<IChange>) changeSet.changes()) {
versionables[i].getName(); // gives you the filename

}