cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CN77
New Member

Power Automate (Azure DevOps)

Hi,

I would like to create a flow, in which a receive an e-mail when specific work item has been updated. 

I do not seem to be able to specify it more specifically than to 'Area Path'.

 

So, for instance when a feature changes status from 'New' to 'Active' then I would like to receive an e-mail.

 

Ideally, I would actually prefer having an Excel cell change status from 'New' to 'Active' e.g.

 

I hope someone can help me 🙂

 

 

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @CN77,

 

You could use a servicehook and POST to a When a HTTP request is received trigger action url. Jon Russell has written a nice blog about this approach:

https://www.jondoesflow.com/post/service-hooks-for-azure-devops-http-request-in-power-automate

 

In your case the servicehook could look like the below:

 

workitemupdate_servicehook.png

 

Alternatively, you could also use the When a work item is updated action and check via a HTTP request what the latest updates are. The drawback of this approach is that the flow will trigger for every update. That is why I would prefer the servicehook one.

 

Below is the setup with a when a work item is updated approach

 

1. Uri for the Send an HTTP request action

ProjectName/_apis/wit/workItems/@{triggerOutputs()?['body/fields/System_Id']}/updates?api-version=6.0

 

2. Expression for the condition action which checks if the System.State field of a Feature work item is equal to In Progress in the last record of the Updates table.

reverse(body('Send_an_HTTP_request_to_Azure_DevOps')['value'])[0]['fields']['System.State']['newValue']

update_statefield.png



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,230)