It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to set OpsGenie Alert Priority from Jira Issue Priority?

Hi everyone!

We'd like to understand how to map Jira's Priority field to OpsGenie's.

I read through the documentation but Jira has a global set that we can't modify to include the P1-5 substrings.

Additionally, we would want both Blocker and Critical to map to P1

Is this possible? Hopefully with both now being Atlassian products, we could expect tighter integration.

Thanks for listening!

2 answers

1 accepted

3 votes
Answer accepted

I believe I've figured it out.

By setting multiple create actions, each for a different static priority, and using the filters to check the Jira priority.

2019-07-02_22-49-18.png

1 vote

Hey Mike, 

 

Happy to see that you were able to find a workaround for your scenario. Apart from it, there is also another way of mapping priority fields from Jira to Opsgenie side - you can also use it if you don't want to create multiple create alert rules. 

Basically, when an issue is created from Jira, the default priorities does not match the acceptable priority levels in Opsgenie. If the priority handling is similar to Jira and Opsgenie, a quick workaround is to insert the Opsgenie accepted priority strings into Jira.

In Jira cloud, priority values are global. Changes will affect all projects in Jira. 

  1. Go to https://<SITE>.atlassian.net/secure/admin/ViewPriorities.jspa 
  2. Insert P1, P2, P3, P4, P5 into the priority values (ie. P1 Highest, P2 High, P3 Medium, P4 Low, P5 Lowest).
  3. In the Opsgenie Jira Service Desk integration advance settings, set the Mapped Priority Value to {{priority.substring(0,2)} 

That method will help you to capture priority strings coming from your Jira instance and alerts will be raised in Opsgenie accordingly. 

 

Opsgenie_-_Integration.jpg

Hope this helps, let us know if anything else is needed!
Warm regards,

 

Emirhan from Opsgenie,

Thanks, Emirhan!

I considered using this but as pointed out above, the priorities are shared by all Jira projects and so our team could not modify them.

 

Hopefully this will be useful for someone!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Opsgenie

What’s New in Opsgenie October 2019

Hi there, we have a lot of exciting announcements this month, specifically around Dark Mode. You don’t want to miss out!    Dark Mode for Mobile App is here! A few weeks ago, we annou...

978 views 3 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you