You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi,
We are trying to get alerts when someone tagged the user in comments(comment body) and here is our setup:
But it is not working. However, when the 'Assignee' 'Matches' {oncall user name}, it works.
Thanks.
Hi @Zihe Wang ,
I think it would all depend on how the data is parsing in the payload / Logs when a comment is added, and a user is tagged in the comment.
A few tests I ran show the user's ID parsing in the comment instead of the user's name or email:
If you want alerts to only be created when a user is tagged in a comment, then I think you'd want your Create Alert action filter to look something like this:
^ Using regex, this filter will create an Opsgenie alert when an issue is created OR a comment is added, AND a user is tagged in the comment.
Event Type Matches .*(~issue_commented|issue_created).*
Comment Body Matches .*(~accountid:).*
Hi Nick,
Thank you so much for the detailed solution and experiement! It works!
Thanks again,
Zihe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.