> ## Documentation Index
> Fetch the complete documentation index at: https://openops-ecb4f397-ops-3865.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Workflow Version History

> How to track and manage workflow versions

export const NarrowImage = ({src, alt, widthPercent}) => {
  const className = `narrow-image-${useId().replace(/:/g, '-')}`;
  const widthRule = widthPercent ? `width: ${widthPercent}%;` : '';
  return <>
      <style>{`
        .${className} {
          max-width: 75%;
          ${widthRule}
        }
        @media (max-width: 768px) {
          .${className} {
            max-width: 100%;
            width: auto;
          }
        }
      `}</style>

      <img className={className} src={src} alt={alt} />
    </>;
};

When you create a new workflow or start editing an existing one, you're working with a draft. For draft editing, there are **Undo** and **Redo** buttons in the top menu of the workflow editor:

<NarrowImage src="/images/versioning-undo-redo.png" alt="Undo/Redo" widthPercent={50} />

Use **Undo** and **Redo** to cancel or repeat the creation of workflow steps. Note that operations more granular than step creation, such as modifying the properties of an action, do not create a new item in the undo stack.

Every time you publish a workflow, OpenOps records the published version so you can view or restore it later. When a workflow is open in the workflow editor, you can click **Version History** in the drop-down menu:

<NarrowImage src="/images/versioning-menu-version-history.png" alt="Version History menu item" widthPercent={60} />

This opens the **Version History** pane to the left of the editor:

<NarrowImage src="/images/versioning-version-history.png" alt="Version History pane" widthPercent={60} />

The version that is currently published is marked with a green dot.

The eye icon marks the version that you're currently viewing. If you click the three-dot menu to the right of a version, you can choose to view that version or use it as a starting point to draft a new version:

<NarrowImage src="/images/versioning-context-menu.png" alt="Context menu of a version" widthPercent={65} />

Reverting to an earlier version is especially useful if the latest published version of a workflow has proven to be problematic, and you'd like to revert to an older version that works. In this case, select **Use as draft** for a previous version known to be functional, then click **Publish**, and the working version is now back in action.

Note that whenever you start editing your workflow, your current draft is also represented in **Version History** by a record with a yellow dot next to it:

<NarrowImage src="/images/versioning-version-history-draft.png" alt="Version History with a draft" widthPercent={65} />
