Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC/EWM - Get Snapshot UUID from Operation History StateID

Hello Jazz Support, maybe you can help me with a small question.


Question: is it possible to use the scm cli and a workspace_history of a workspace to get a snapshot UUID of a snapshot created in that workspace? If so, how?

Background:
Our project has a stream which is used to contain and document the history of a project. For specific releases, we will create a snapshot.

Generally the snapshot will be owned by this stream, but it is possible to change the owner of a snapshot. If the snapshot owner changes, the ownedBy value will change and will lose the information of where that snapshot was originally made. The streamĀ  maintains an operation history showing that the snapshot was made using that stream in the workspace_history, but the available data does not list the snapshot UUID, rather it only reports the snapshot name which may be duplicated/ambiguous.

We are wondering if maybe there are operations available which use the stateID to get further details about that state of that stream at that time?

what we get from show operations:
{
  "components": 2,
  "contributor": "contributor-name",
  "date": "15-Aug-2024 06:22:24 PM",
  "details": [
                "snapshot-name"
             ],
  "operation": "CREATE_BASELINE_SET",
  "stateId": "_X3o-kVV7Ee-M_d2M6LFWFQ_gDp_RupzEe6qYtozw1AXUwMw=="
}
what we had hoped to see:
{
  "components": 2,
  "contributor": "contributor-name",
  "date": "15-Aug-2024 06:22:24 PM",
  "details": [
                "<SNAPSHOT_UUID>"
             ],
  "operation": "CREATE_BASELINE_SET",
  "stateId": "_X3o-kVV7Ee-M_d2M6LFWFQ_gDp_RupzEe6qYtozw1AXUwMw=="
}

Thank you for your time.

0 votes

Comments

This is a forum and not Jazz support see the guidelines: https://jazz.net/forum-guidelines.jsp .



One answer

Permanent link

adding the --verbose option lists the snapshot uuid from the 'show operations' scm cli command.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 26, 8:11 a.m.

Question was seen: 554 times

Last updated: Aug 26, 9:51 a.m.

Confirmation Cancel Confirm