Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,455,417
Community Members
 
Community Events
175
Community Groups

Jira Integration in Opsgenie

Zihe Wang I'm New Here Jan 25, 2023

Hi,

We are trying to get alerts when someone tagged the user in comments(comment body) and here is our setup: 

Screen Shot 2023-01-25 at 2.19.36 PM.png

But it is not working. However, when the 'Assignee' 'Matches' {oncall user name},  it works. 
Thanks. 

1 answer

1 accepted

1 vote
Answer accepted

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:

comment1.jpg

comment2.jpg

 

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:

comment3.jpg

 

^ 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:).*

 

Zihe Wang I'm New Here Jan 26, 2023

Hi Nick,

Thank you so much for the detailed solution and experiement! It works!

Thanks again,

Zihe

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events