cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerAutomateUs
Helper I
Helper I

Notify a team when the status of a work item changes in Azure DevOps

I am currently using the Notify a team when the status of a work item changes in Azure DevOps template. Is there a current update to this flow that can be made to notify the individual who created the bug about the status change through teams?

2 ACCEPTED SOLUTIONS

Accepted Solutions
Expiscornovus
Dual Super User
Dual Super User

Hi @PowerAutomateUs,

 

Just to double check, you mean to notify in a private teams chat, correct?

 

If so, you could replace the post your own adaptive card as the Flow bot to a channel action by a Post adaptive card in a chat or channel action. You can then reuse the Created By property of the work item to send it to the correct recipient.

 

Below is an example of that approach.

 

1. Add a Post adaptive card in a chat or channel action. I used the following expression in the Recipient field to retrieve the email address of the CreatedBy field from Azure DevOps.

 

split(split(triggerOutputs()?['body/fields/System_CreatedBy'], '<')[1], '>')[0]

 

chatwithflowbot.png

View solution in original post

6 REPLIES 6
Expiscornovus
Dual Super User
Dual Super User

Hi @PowerAutomateUs,

 

Just to double check, you mean to notify in a private teams chat, correct?

 

If so, you could replace the post your own adaptive card as the Flow bot to a channel action by a Post adaptive card in a chat or channel action. You can then reuse the Created By property of the work item to send it to the correct recipient.

 

Below is an example of that approach.

 

1. Add a Post adaptive card in a chat or channel action. I used the following expression in the Recipient field to retrieve the email address of the CreatedBy field from Azure DevOps.

 

split(split(triggerOutputs()?['body/fields/System_CreatedBy'], '<')[1], '>')[0]

 

chatwithflowbot.png

@Expiscornovus When using the split function the output sent to the individual is in directly in Json format not formatted correctly 

split(split(triggerOutputs()?['body/fields/System_CreatedBy'], '<')[1], '>')[0]

 

PowerAutomateUs_0-1622839764333.png

The flow 

PowerAutomateUs_3-1622839896711.png

 

 

 

Expiscornovus
Dual Super User
Dual Super User

Hi @PowerAutomateUs,

 

It looks like you are using the Post a message as the Flow bot to a user. 

 

Can you try and use the Post your own adaptive card as the Flow bot to a user or another action which supports the posting of adaptive cards instead?

https://docs.microsoft.com/en-us/connectors/teams/#post-your-own-adaptive-card-as-the-flow-bot-to-a-...

 

That did the trick, thank you @Expiscornovus 

 

Would you happen to know the syntax to tag a person in the "bot to a channel" in order to notify them in the channel. I tried using <at> </at>

 

<at> split(split(triggerOutputs()?['body/fields/System_CreatedBy'], '<')[1], '>')[0] </at>
 

Thank you very much.

I want to notify the Created by user when any change (priority, state, date, description etc.) is done on the workitem. Is the above method is useful for that if yes then what is the value of Adaptive card and how to set it ? Please reply it is urgent. @Expiscornovus  @PowerAutomateUs 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,573)