Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Parse email subject lines

Apps like Heroku and Fivetran don't support rich alerting through the Opsgenie API.  Instead, they send emails.  Is there a way to parse the subject lines of an email using a regex and extract an alert action and alias?

Here is an example:

Screenshot 2023-03-27 at 10.08.18 AM.png

Instead of creating two alerts, I'd like to automatically close the first one when the second "[Resolved Alert]" email comes in.  A simple regex should be able to separate out whatever comes after the [Brackets] into the alert alias which we could use to auto close the issue.  Is there a way to parse that subject line using incoming integrations?  


1 answer

@Zander Otavka you can apply regexes to fields via a string processing method, though in this case it looks like you can use the substringAfter method too, documentation here:
String processing methods in Opsgenie integrations | Opsgenie | Atlassian Support

You can use this to define the Alias field, you just want to be careful to ensure that the subject is going to be unique for each alert, if not you should combine some other variable from the email body (which can be extracted via a string processing regex).

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events