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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.