cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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
Super User
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



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


View solution in original post

6 REPLIES 6
Expiscornovus
Super User
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



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


@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
Super User
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-...

 



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


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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,626)