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,551,698
Community Members
 
Community Events
184
Community Groups

Action and Extra properties in Opsgenie

Edited
serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 19, 2021

Dear all,

I am actually evaluating opsgenie and I am facing to a really fuzzy field used when creating alert or incident.

Those fields are Action and Extra properties.

chrome_bJCLS1XHF1.png

Does anyone have any sample content of those field and how there are used to be used ?

Really unclear to me so fat

Thanks for clarification

regards

1 answer

0 votes
Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 19, 2021

Hi @serge calderara ,

 

The "actions" field, is where you can add custom actions that will be added to the alerts, so that you can then execute those custom actions on the alert, to trigger an outbound integration, or an Opsgenie Actions Channel to do something.

This doc details custom actions, and an example of how you can trigger a custom action to send to OEC, to execute a custom script.

So for example, you can add the "ping" action to be added to alerts, so that the alert will then have the "ping" action available for execution...

2021-04-19_09-44-35.png

2021-04-19_09-44-57.png

 

You can then setup an outbound integration like an OEC integration, or a Webhook integration, or an "Opsgenie Action" Channel to trigger based off the execution of that custom action.

 

Extra properties are just additional key-value fields you can add to alerts. So it just provides additional fields you can add to alerts, besides the default message, description, alias, etc. that are used on Opsgenie alerts.

 

So you can really add anything to those extra properties, for example 

HostName: XXXX

to specify a specific host that the alert is related to.

 

Thanks,

Samir

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 20, 2021

hello @Samir thanks for your reply.

Just for clarification and to give it a try I have define an email integration where I can send email to create an alert. 
I have define a rule where only P3 severity are  consider as alert in opsgenie as defined below

X2FwtCdF8H.png

 

Then when user send email to the support address, how can I ask them to specify the Priority parameter as part of the email in order to filter proper rule?

Does it have to do with  Extra properties ?

how to configure that Priority in order it is bind to alert field from received email ?

regards

Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 20, 2021

You would do the priority mapping within the integration, it wouldn't have anything to do with extra properties.

You would need to be on the Standard or Enterprise plans, in order to have access to the "advanced" view of integrations to do this.

If the user is sending the email with "priority: P2" in the body of the email for example, then you can setup multiple Create Alert actions that filters on the priority being sent in the "message" field of the email (i.e. the body of the email), and set the priority of the Opsgenie alert accordingly...

e.g.

1 Create Alert action filtering for if message contains "Priority: P1", and if so - creates alert with priority = P1...

2021-04-20_09-12-00.png

2nd Create Alert action filtering for if message contains "Priority: P2", and if so - creates alert with priority = P2...

2021-04-20_09-12-37.png

 

Alternatively you can use string processing or regex to parse out the value of priority being sent in the message, to set the priority.

e.g.

Instead of using filters, use regex to parse out the "2" from "priority: P2" being sent in the message of the email

2021-04-20_09-16-04.png

serge calderara
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Apr 20, 2021

Hello @Samir thnaks for your reply.

Its wierd I am in Standard plan but could not find in email integration where is what you call Advance view. I can see only what is below :

chrome_HPJe7uibM2.png

I have use the string formatting as I could not find Advance view you mentioned.

regards

Samir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 20, 2021

Hi @serge calderara You are on the "JSM Standard" plan. I was referring to the Standalone Opsgenie Standard and Enterprise plans.

 

If you're on a JSM plan, you will need to have the JSM premium plan for advanced integrations.

 

The JSM Standard plan has similar features as the standalone Opsgenie Essentials plan. These plans just provide the basic features of Opsgenie, and don't offer the more advanced features that allow more flexibility and customization within the platform.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events