Compare and restore versions of a workflow

Latest Dynatrace

Version history in Workflows tracks and manages changes to a workflow.

You can:

  • View the history of changes made to a workflow.
  • Compare two versions of a workflow side-by-side to see what changed.
  • Restore an earlier version.
  • Make a copy of a workflow based on a selected version from the history.
  • Download workflow versions as a JSON file and templates as a YAML file.

Version history is also available for calendars and rules in Workflows. You can access it from the Action column of each calendar or rule. For more details, see Set up a workflow calendar and Set up a workflow scheduling rule.

Prerequisites

You have a workflow in Workflows Workflows. To create your first workflow, see Workflows quick start guide and Create workflows in Dynatrace Workflows.

View a workflow version

When a workflow is saved more than once, you can access a list of its previous versions.

  1. Go to Workflows. You can see a list of workflows.

  2. Choose your workflow from the list.

  3. Select > Version history. A pop-up window opens with a list of workflow versions.

  4. In the Version column, select the version you want to see. The workflow of this particular version is shown.

If you select a previous version from the list, a notification message at the top of the page informs you that you're viewing an earlier version. You can compare this version to another, restore it, or make a copy of it.

By selecting Back to current version, you can open the current workflow version.

Compare a workflow

When you change a workflow, a new version is saved in Workflows. You can view a side-by-side comparison of the changes for each version.

  1. Go to Workflows.

  2. From the list of workflows, select > Version history.

  3. In the Actions column, select > Compare.

  4. Select the versions you want to compare. A pop-up window opens with the two workflows shown next to each other. All changes are highlighted.

  5. optional At the top of the workflows, in the drop-down list for each workflow, you can change the version of the workflow you want to compare.

Restore a workflow

To restore a workflow

  1. Go to Workflows.

  2. From the list of workflows, select > Version history.

  3. In the Actions column, select > Restore.

You can restore any previous version. Restoring is not possible for the latest version, which is labeled Current.

Copy a workflow

You can make a copy of an existing workflow and use it as a basis for a new workflow.

  1. Go to Workflows.

  2. From the list of workflows, select > Version history.

  3. In the Actions column, select > Make a copy.

    The copy of your workflow opens for editing.

  4. After you modify it, select Save.

Download a workflow

You can download your workflow or your template. Workflows can be downloaded as JSON files, while templates can be downloaded as YAML files. For details, see Download a workflow or template.