How to mention a user when creating a work item in Azure Boards - Azure Powershell

Viewed 34

Is this even possible? We have a PowerShell script that checks several items and opens work items based on what's found. This works fine. Users are not notified of these tickets though, they don't see them until they check Boards. Ideally I want to be able to mention them and have a notification sent to their E-mail. Command looks like this.

az boards work-item create --title "issue name" --type TASK --area "correct-area" --assigned "owning user" --org "org" -p "project" -d "issue reported and required action."

Tasks are being generated for the issues found, assigned to the correct person and with the description I need. yay. But if I had typed it out I could have added @user/group in the description or discussion section and an E-mail would have been sent to them. I have tried adding the below to the description and discussion:

<div><a href=\"#\"data-vss-mention=\"version:2.0,objectIDForTheUserOrGroup\">@User</a>&nbsp; Test Comment with mention</div>

And many tweaks on the above. The WI is still created and it looks perfect, but no notification is sent to the user that they've been mentioned. I am starting to suspect that this just doesn't work this way.

0 Answers
Related