API - Get change set list of a Stream ?
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
Accepted answer
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
List<ChangeHistoryEntry> ChangeHistoryWithBaselinesResult#getChangeHistoryEntries()
Comments
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
can you provide the operation history API details (Stream). I need to know count how many change sets delivery happening on the stream daily.
![](http://jazz.net/_images/myphoto/2d6175a8f441a0cef971073b84a1bd7b.jpg)
1 vote
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
Hello Shashikant,
![](http://jazz.net/_images/myphoto/2d6175a8f441a0cef971073b84a1bd7b.jpg)
The IWorkspaceConnection#fetchChangeHistoryWithBaselines(...) was added in 701. Which version are you using?
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
We are still using 6.0.6.1 :(
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
Hallo Shashikant ,
![](http://jazz.net/_images/myphoto/2d6175a8f441a0cef971073b84a1bd7b.jpg)
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);
}
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
Hello Shashikant,
![](http://jazz.net/_images/myphoto/2d6175a8f441a0cef971073b84a1bd7b.jpg)
for (IChange change : (List<IChange>) changeSet.changes()) {
versionables[i].getName(); // gives you the filename
![](http://jazz.net/_images/myphoto/e5220ec51f1866a519fd1bb5c13d34a6.jpg)
}