Skip to content

Clear triage tags when work is completed in Azure DevOps

  • Azure DevOps
  • Automation
  • Work Items
  • Tags
  • State
Clear triage tags when work is completed flow overview
Overview of the automation flow to clear tags when a work item is completed.

When State changes to Completed (Closed or Done), remove the listed tags and leave other tags unchanged in Azure DevOps.

Set the tag names to match what your team uses. Start from the Work Items gallery template or add the same Work Item Update trigger, state condition, and Update Tags action from scratch.

Prerequisite: Install Automations App on your Azure DevOps organization

Create an automation from the Clear triage tags when work is completed template, or start from scratch
Go to Project → Automations → Create automation from template Clear triage tags when work is completed or Start from scratch.
Trigger

Trigger — Work Item Update

This trigger activates when a work item field changes, specifically monitoring changes to the 'State' field. It does not include changes in links or comments.

Configured in this template

  • Work item types: all (no filter)
  • Changed fields (optional filter): State

You can customize

  • Limit the trigger to specific work item types if needed.
  • Add additional fields to monitor if your process requires it.
Clear triage tags when work is completed trigger
Trigger setup for monitoring work item state changes.
Condition

Condition — Work item fields

This condition checks if the work item's 'State' field is set to a completed category, such as Closed or Done. The automation proceeds only if this condition is met.

Configured in this template

  • Check: This work item
  • Require: All of Items
  • Field conditions: State = state category Completed (Closed, Done, …)
  • Match logic: All conditions must match (AND)
  • Related work item conditions: (none)

You can customize

  • Adjust the state categories to match your project's definitions of completion.
  • Add more conditions if your workflow has additional criteria.
Clear triage tags when work is completed condition 1
Condition setup to check for completed state categories.
Action

Action — Update Tags

This action removes specified tags from the work item once it is confirmed to be in a completed state. Other tags remain unchanged.

Configured in this template

  • Work on: This work item
  • Update: Remove specific tags
  • Tags: needs-triage

You can customize

  • Specify different tags to remove based on your project's tagging system.
  • Add actions to update other fields or notify team members.
Clear triage tags when work is completed action 1
Action setup to remove specific tags from completed work items.

Full automation

Clear triage tags when work is completed full automation
Complete view of the automation setup to clear tags when work is completed.

Common questions

How do I clear triage tags when work is completed in Azure DevOps?
When State changes to Completed (Closed or Done), remove the listed tags and leave other tags unchanged in Azure DevOps. Use the Clear triage tags when work is completed template in Documentero Automations: open Templates, pick this flow, fill the required fields, and enable it.
What fields are required to enable this automation?
You must specify the tags you want to remove before enabling the automation.
Can I change the work item types this automation applies to?
Yes, you can customize the trigger to apply to specific work item types as needed.
How can I test if the automation is working correctly?
After setting up, manually change a work item's state to Completed and verify if the specified tags are removed.
Is there a way to schedule when this automation runs?
No scheduling is needed as this automation runs in response to work item state changes.

Visual Studio Marketplace

Automations

Documentero · Preview

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

Get it free