Azure DevOps Work Item tag trigger
Sometimes a Power Automate trigger action is not sufficient for certain requirements. In that case a trigger condition might be a good alternative. In this article I will demonstrate how you can trigger a flow when a specific tag is used in a recently update Azure DevOps bug work item.
This question from rogemer:
I’d like to trigger an action based on adding certain tags to an ADO item. Is that possible with Power Automate?
Power Users Community thread: Triggering on ADO item creating based on tags.
Typically when designing an automation like this you first start looking for existing connectors and their trigger actions. Microsoft has published an Azure DevOps connector with the following list of Azure DevOps trigger actions.
Using the When a work item is updated trigger action made the most sense in this example. After a couple of test runs with this action it was clear that the outputs included a system_tags field. The goal was to create a trigger condition expression which checks the value of this field.
In this example we are sending a Microsoft Teams private chat message to the product owner whenever a Bug work item is tagged with the tag Blocking in a specific Azure DevOps scrum project.
1. Add a When a work item is updated trigger action, from the Azure DevOps connector. Select your organisation and your project. Select the type Bug.
2. Go to the settings of the When a work item is updated trigger action. Add a trigger condition. The expression can be found below.
3. Add a Post message in a chat or channel action. Select the Flow bot and Chat with Flow bot. Enter the name of the product owner. Add a text for the message and include dynamic content fields from the Azure DevOps trigger action. In this example I only used the URL field value.
That is it for the setup of this example.
I’m trying to replace a system input with a user submitting a work item, via MS Forms. Is there a way to replace this? MS Forms -> Automate -> AzureDevOps… Azure and Automate show that I’m (owner of the flow) is submitting the form and I can’t seem to figure it out. I tried based on your example, but I can’t get it to work. Any tips?
@Mark, like mentioned in the comments of my other DevOps article. Have a look at using the Azure DevOps REST API and using bypassRules
This is cool, and I certainly appreciate you sharing! Dankuwel! People should be aware of the pricing, because if they get into the pay-as-you-go $0.60 or $3.00 per run pricing they could run up costs very quickly! https://powerautomate.microsoft.com/en-us/pricing/