It's all about the answers!

Ask a question

RTC/EWM - Get Snapshot UUID from Operation History StateID


Zachary Slade (112) | asked Aug 26, 8:11 a.m.
edited Aug 26, 8:20 a.m.

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.


Comments
Ralph Schoon commented Aug 26, 9:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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

One answer



permanent link
Zachary Slade (112) | answered Aug 26, 8:24 a.m.
edited Aug 26, 8:25 a.m.

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

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.