Skip to content

Tag restored work in Azure DevOps

  • Azure DevOps
  • Automation
  • Work Items
  • Tags
  • Restore
Tag restored work flow overview
Overview of the 'Tag restored work' automation flow.

When a work item is restored from the recycle bin, add a restored tag and a comment in Azure DevOps.

To use this automation, you will need to set the tag name and comment text before enabling it. This template is perfect for keeping track of restored work items efficiently.

Prerequisite: Install Automations App on your Azure DevOps organization

Create an automation from the Tag restored work template, or start from scratch
Go to Project → Automations → Create automation from template Tag restored work or Start from scratch.
Trigger

Trigger — Work Item Restored

This trigger activates when a deleted work item is restored from the recycle bin. It ensures that the automation only runs on work items that have been brought back from deletion.

Configured in this template

  • Work item types: all (no filter)

You can customize

  • Limit the trigger to specific work item types if needed.
Tag restored work trigger
Trigger setup for detecting restored work items.
Action

Action — Update Tags

This action adds the 'restored' tag to the work item that was triggered. Other existing tags on the work item remain unchanged.

Configured in this template

  • Work on: This work item
  • Update: Add specific tags
  • Tags: restored

You can customize

  • Change the tag to a different name if 'restored' does not fit your project's terminology.
Tag restored work action 1
Action setup to add a 'restored' tag to the work item.
Action

Action — Add Comment

This action adds a comment to the restored work item, noting that it has been restored from the recycle bin. This provides additional context for team members reviewing the item.

Configured in this template

  • Work on: This work item
  • Comment text: Restored from the recycle bin.

You can customize

  • Modify the comment text to include more details or specific instructions.
Tag restored work action 2
Action setup to add a comment on the restored work item.

Full automation

Tag restored work full automation
Full view of the 'Tag restored work' automation on the builder canvas.

Common questions

How do I tag restored work in Azure DevOps?
When a work item is restored from the recycle bin, add a restored tag and a comment in Azure DevOps. Use the Tag restored work template in Documentero Automations: open Templates, pick this flow, fill the required fields, and enable it.
What fields must be filled before enabling this automation?
You need to set the tag name and comment text before enabling the automation.
Can I change the work item types this automation applies to?
Yes, you can customize the trigger to limit it to specific work item types.
How can I test this automation?
Since 'Run now' is not available, restore a work item from the recycle bin to test the automation.

Visual Studio Marketplace

Automations

Documentero · Preview

Automate Azure DevOps workflows with triggers, actions, conditions, and scheduled rules.

Get it free