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,556,028
Community Members
 
Community Events
184
Community Groups

mapping custom priorities with jira service management cloud integration

what is the best way to map custom priorities in jira to opsgenie priorities when using the jira service management cloud integration?  the legacy integration has a direct means of doing this via the "Custom Value to Opsgenie Priority" option, but the new cloud integration seems to lack this option.

also, are custom fields accessed the same way when using the cloud integration (via _payload)?

i came across the following article, but it references the legacy automation:

https://community.atlassian.com/t5/Opsgenie-articles/How-to-Map-Alert-Priorities-in-Opsgenie/ba-p/2044304

1 answer

1 accepted

0 votes
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 12, 2022

Hi @Kenneth Kharma ,

Although that article does reference the Legacy integration, the idea should be the same with section 1 - Advanced integration settings - configuring multiple create alert actions that filter on the priority being sent from JSM, and mapping to the corresponding Opsgenie alert priority with the JSM cloud integration. For example:

jsmcloud1.jpgjsmcloud2.jpgjsmcloud3.jpg

 

Like you mentioned, the new JSM cloud integration does not have the Custom Value to Opsgenie Priority option available at this time. 

thanks @Nick H ... if our priority comes from a custom field, will we need to stick with the legacy integration for now?

is there any way to access custom fields in the new integration, e.g. for text output or otherwise?

@Nick H could you comment on the above questions?  thanks!

Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 27, 2022

Hi @Kenneth Kharma ,

Since the Custom Value to Opsgenie Priority option is not available in the JSM cloud integration, in my opinion it would be easier to use the JSM legacy integration. 

Having said that, the JSM cloud integration could still be used, but would require also configuring alert policies that filter on the custom field being extracted into the alert. That is covered here in step 3: How to Map Alert Priorities in Opsgenie

This article might help as well if you're looking at hints on how to extract a custom field: How to Extract Custom Fields and Data into an Alert

We also have a similar feature request for mapping Jira / JSM priorities you can follow, watch and vote for here: https://jira.atlassian.com/browse/OPSGENIE-587

here is what i ended up implementing.  per nick's suggestion, i used option 3 from How to Map Alert Priorities in Opsgenie.  i extracted our custom priority field into an extra property and created alert policies to do the priority mappings.  i had some difficulty finding a custom field extraction that worked.  here is what i ended up using: {{customFields.customfield_XXXXX.substringBetween("value=",",")}}

for some reason, {{customFields.customfield_XXXXX.value}} was not parsing properly.

Like Nick H likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events