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!


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
Community Members
Community Events
Community Groups

Opsgenie Eleastic X-pack set priority


Hay All


I am just getting started with opsgenie and i am trying, to get the watcher xpack in elastic to set the priority of the alert.

But i cant see how to do it.


any advise 


``` Example of the Json code

"body": { "inline": {
"id": "{{ctx.watch_id}}-{{ctx.trigger.triggered_time}}",
"vars": {},
"trigger": {
"triggered_time": "{{ctx.trigger.triggered_time}}",
"scheduled_time": "{{ctx.trigger.scheduled_time}}"
"execution_time": "{{ ctx.execution_time }}",
"watch_id": "{{ctx.watch_id}} hostname12",
"total": "{{}}",


I have tired to add priority in most places in the payload section, but no luck its like opsgenie is ignoring it 

1 answer

1 accepted

0 votes
Answer accepted
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 28, 2019

Hey Nigel, 


Thank you for contacting Opsgenie Community!

Sorry for the delay getting back to you. At this point, API endpoint based integrations don't support the custom priority mapping feature. We have a ticket open right now to update the interface so that the option isn't there, since it's understandably confusing to see in the drop-down.

Therefore, we would recommend you to define different create alert rules under X-Pack Alerting integration and define filters for each of these create alert rules, in which conditions alerts should be raised in different priorities.

For example, if "Total Hits" contains/equals "XX", then create an alert with P1/2/3/4/5 priority. 


Hope this helps,

Best regards,

thank you, for the information and confirming this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events