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
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!

Users online (4,339)