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!


Extract Priority from Email

I am trying to integrate several alerting systems into Opsgenie and they all have their own priority level and multiple variations of the alerts. To save some space in the alerts and keep management of the alerts to a minimum I wanted to see if it was possible to translate a value like "Severity: Critical" from the message into "P1" without using the filter. 

I've made a regular expression to return the "Critical|High|Medium|Low" value provided in the email, I just need to convert it to a P1-5 value. Any help is appreciated.

{{ message.extract(/Severity: (.*)/) }}

1 answer

1 accepted

1 vote
Answer accepted
John M
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 26, 2022

Hi Sam,

In this case, you would need to use a filter. There is no way to convert strings from external sources to the necessary 'P' values after they reach Opsgenie. Keep in mind, you can setup multiple 'Create Alert' actions - one for each priority. Otherwise, you would need to use {{priority}} in the Priority field and convert the values to the format Opsgenie is expecting before they are received. 

Thanks for the info. That was my fear, but I thought I should verify as I didn't want to have a long list for each item type + severity.


Thanks for the reply!

Like John M likes this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events