How can I list the component baselines in a stream snapshot using plain java API's?
We could use the command line "lscm list components <snapshot alias/name/uuid> --snapshot" but how is same possible using java API?
FORUM MODERATOR / JAZZ DEVELOPERJul 26 '16, 10:41 a.m.
Just to make it clear for readers: This code shows how, on the server, one would fetch the baselines in the history of some workspace or stream. The question is asking how to get the baselines of a given snapshot, which would be IBaselineSet.getBaselines().
I am able to fetch the list of snapshots from a given stream programmatically but I am unable to fetch the list of components within a snapshot. I need to copy some files from one component in the snapshot to a component outside the snapshot(in another stream)...
FORUM MODERATOR / JAZZ DEVELOPERFeb 01 '21, 7:18 a.m.
When you have a snapshot (IBaselineSet) you will need to fetch the full IBaseline objects (from the handles of IBaselineSet.getBaselines()). From there, you can get the component using IBaseline.getComponent().
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.