How to retrieve change sets from baseline using plain java api?
![]() Hi all,
I need to fetch all the changesets from baseline. I successfully fetched baseline handle. After that I stuck because there is no api provided to fetch changesets from baseline, is anyone has idea?
|
Accepted answer
![]()
David Lafreniere (4.8k●7)
| answered Jun 11 '19, 9:23 a.m.
FORUM MODERATOR / JAZZ DEVELOPER edited Jun 11 '19, 9:24 a.m.
Take a look at:
-IWorkspaceManager.getBaselineConnection(IBaselineHandle baselineHandle,IProgressMonitor monitor)
and BaselineConnection.changeHistory()
Andrew Ciaz selected this answer as the correct answer
Comments Thanks @David Lafereniere for your quick reply @David Lafreniere BaselineConnection.changeHistory() returns IChangeHistory object but there is no api to retrive IChangeSet object from it, do you have any idea how to get changeset object from IChangeHistory Also, are you looking for client-side API, or server-side API?
IBaselineConnection.changeHistory() -->
IChangeHistory.getHistoryDescriptor() -->
IChangeHistoryDescriptor.recent() which returns IChangeHistoryEntryChange -->
IChangeHistoryEntryChange.changeSet() to get the change set handle
This would get you the most recent batch of change sets, then you would need to call IChangeHistory.previousHistory() and repeat untll IChangeHistory.previousHistory() is null
Thanks @David Lafreniere |
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.