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
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
We receive alerts via email integration and each time a comment is made on the ticket a new alert is created and initiates a new call. I would like to suppress the alerts when comments are made on the same ticket but I am unsure how to properly code the Alias to pull the Incident number ensure this happens. Can someone help?
1. Incident created and OpsGenie receives an email that has a subject that starts like this..... Incident #82201 Can't Sign into my computer
2. When comments are made on the ticket then OpsGenie receives additional emails that look like this in the subject... RE: Incident #82201 Can't Sign into my computer
I need to create an alias that pulls the Incident number from the subject and suppresses the additional alerts when a comment is added to a ticket and when the ticket is closed.
Hey there Travis,
Thanks for writing into Community, I'm Talar from the Atlassian Opsgenie support team, happy to help!
If you're on Standard or Enterprise plans, you absolutely can - via some fancy String Processing / Regex. This also works for other fields + info - sometimes the Regex can take a little time to get right, so don't be afraid to test it out!
Since your email will sometimes start with "Incident..." and other times with "RE: Incident.." I'd recommend "hard-coding" the Incident part into the Alias, and pulling out the #<number> from the subject via regex.
Something along these lines should do the job for you (it may need some finessing based upon how your email is parsed once it comes through):
Hope this helps!