Shashikant Padur (4.2k●2●7)
| answered Jun 22 '17, 11:09 p.m.
JAZZ DEVELOPER
IWorkspaceManager#findBaselineSets(...) will return List<IBaselineSet> and you should be able to retrieve all the information with respect to the snapshot from IBaselineSet.
David Lafreniere selected this answer as the correct answer
Thanks for your reply Shashikant. I tried with findBaselineSets(...) but I am unable to get the latest snapshot.....could you please share any sample snippet.
Thanks
Shashikant Padurcommented Jun 25 '17, 11:29 p.m. | edited Jun 25 '17, 11:30 p.m.
JAZZ DEVELOPER
IBaselineSetSearchCriteria criteria =
IBaselineSetSearchCriteria.FACTORY.newInstance();
criteria.setOwnerWorkspaceOptional(stream); // stream (IWorkspace) which owns the snapshot. Make sure that the snapshot is owned by the tream. You can verify this by the listing the snapshots of that stream using the RTC client.
If you know which project/team area (IProcessArea) owns the stream: