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?
Solved! Go to Solution.
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]
Found the solution under a different thread
https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Mention-anyone-in-a-teams-message-from-a-fl...
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]
@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]
The flow
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?
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.
Found the solution under a different thread
https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Mention-anyone-in-a-teams-message-from-a-fl...
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
User | Count |
---|---|
5 | |
5 | |
4 | |
2 | |
2 |