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
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,397)