Skip to content

Set Priority by rules in Azure DevOps

  • Azure DevOps
  • Automation
  • Work Items
  • Priority
Set Priority by rules flow overview
Overview of the automation flow for setting priority by rules.

When a work item is created as a Bug, set Priority to 1 in Azure DevOps.

This guide will walk you through setting up the automation, including configuring conditions and priority values. You'll be able to customize these settings to match your project's specific requirements.

Prerequisite: Install Automations App on your Azure DevOps organization

Create an automation from the Set Priority by rules template, or start from scratch
Go to Project → Automations → Create automation from template Set Priority by rules or Start from scratch.
Trigger

Trigger — Work Item Created

This trigger activates the automation whenever a new work item is created in the project. It does not filter by work item type, so all new work items will initially trigger the flow.

Configured in this template

  • Work item types: all (no filter)

You can customize

  • Filter specific work item types if you only want to trigger on certain types.
Set Priority by rules trigger
The trigger activates when any new work item is created.
Condition

Condition — Work item fields

This condition checks the fields of the newly created work item. It ensures that the automation proceeds only if the work item type is 'Bug'. All specified conditions must match for the flow to continue.

Configured in this template

  • Check: This work item
  • Require: All of Items
  • Field conditions: Work item type = Bug
  • Match logic: All conditions must match (AND)
  • Related work item conditions: (none)

You can customize

  • Add more field conditions if you need to check additional criteria.
  • Change the work item type to trigger on different types.
Set Priority by rules condition 1
Condition checks if the work item type is 'Bug'.
Action

Action — Update Work Item

This action updates the Priority field of the work item to 1. It applies to the work item that triggered the flow, ensuring that bugs are prioritized appropriately.

Configured in this template

  • Work on: This work item
  • Field updates: Priority = 1

You can customize

  • Change the Priority value if your project uses a different priority scheme.
  • Update additional fields if needed.
Set Priority by rules action 1
Action updates the Priority field to 1 for the work item.

Full automation

Set Priority by rules full automation
Complete view of the automation flow on the builder canvas.

Common questions

How do I set Priority by rules in Azure DevOps?
When a work item is created as a Bug, set Priority to 1 in Azure DevOps. Use the Set Priority by rules 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 need to set the conditions and Priority value before enabling the automation.
Can I change the work item type that triggers this automation?
Yes, you can customize the condition to trigger on different work item types by adjusting the field conditions.
How can I test this automation?
Create a test work item that matches the conditions set in the automation to verify that the Priority is updated correctly.

Visual Studio Marketplace

Automations

Documentero · Preview

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

Get it free