Is there a API to get the name of only latest snapshot from the stream?
The use case is I have IWorkspaceConnection object and I need to fetch the name of the latest snapshot. There is a api ".getBaselineSets(IProgressMonitor)" , however it lists all the snapshot and the javadocs says "The items in the list not specified to be in any particular order" . Is the first object in the list is the latest one or Is there any other api's to fetch the latest snapshot details? |
One answer
As far as I know, to fetch the latest snapshot you have to retrieve the creation dates and compare them.
Pehaps this code snippet I used some time ago for this purpose can help you:
List<?> snapshots = reportStreamConn.getBaselineSets(monitor); |
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.