It's all about the answers!

Ask a question

UUID fetching


KT PD (597) | asked Jul 12 '21, 3:14 a.m.

 Hi Team,


I want to differentiate snapshots which are having same name using UUID. What is the most easy way to get UUID of streams or snapshots?

2 answers



permanent link
Luca Martinucci (1.0k294112) | answered Jul 12 '21, 3:31 a.m.

What is the context of your request?

In a server side extension that uses Java API, for example, you can retrieve the UUID of any object once you've got its handle:

String itemHandleIdentifier = itemHandle.getItemId().toString();


permanent link
KT PD (597) | answered Jul 12 '21, 4:17 a.m.

 Is there any command so we can access it from SCM Command line


Comments
Shashikant Padur commented Jul 12 '21, 7:32 a.m. | edited Jul 12 '21, 7:32 a.m.
JAZZ DEVELOPER

You can run the following command 'scm -u y list snapshots <workspace_or_stream>' or 'scm -u y list snapshots -n <snapshot_prefix>'


Ralph Schoon commented Jul 12 '21, 10:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I think this has been answered that here  are the 'unique identifiers' and also hinted on the SCM Command Line Reference in the product documentation.

Your answer


Register or to post 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.