Action and Extra properties in Opsgenie
Asked by serge calderara:

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](https://community.atlassian.com/t5/image/serverpage/image-id/139266iEA94DD488ADDBF68/image-size/large?v=v2&px=999 "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


Answers:
author: Samir
body: Hi [@serge calderara](/t5/user/viewprofilepage/user-id/3385932) ,

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](https://support.atlassian.com/opsgenie/docs/set-up-a-custom-action-alert/), 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](https://community.atlassian.com/t5/image/serverpage/image-id/139299i5DDC41F6BDCADE36/image-size/large?v=v2&px=999 "2021-04-19_09-44-35.png")

![2021-04-19_09-44-57.png](https://community.atlassian.com/t5/image/serverpage/image-id/139300i1C271E331DF0C420/image-size/large?v=v2&px=999 "2021-04-19_09-44-57.png")

You can then setup an outbound integration like an OEC integration, or a [Webhook integration,](https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-webhook/) or an "[Opsgenie Action" Channel](https://docs.opsgenie.com/v1.0/docs/opsgenie-actions) 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

comments: author: serge calderara
body: hello [@Samir](/t5/user/viewprofilepage/user-id/2168284) 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](https://community.atlassian.com/t5/image/serverpage/image-id/139450iB24F8F43ED0E7261/image-dimensions/414x216?v=v2 "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


author: Samir
body: 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](https://community.atlassian.com/t5/image/serverpage/image-id/139500i1219991ACF0FC14D/image-size/large?v=v2&px=999 "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](https://community.atlassian.com/t5/image/serverpage/image-id/139501i463C3640641F807A/image-size/large?v=v2&px=999 "2021-04-20_09-12-37.png")

Alternatively you can use [string processing](https://support.atlassian.com/opsgenie/docs/string-processing-methods-in-opsgenie-integrations/) or [regex](https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/) 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](https://community.atlassian.com/t5/image/serverpage/image-id/139503i8B3DE997BB767CAF/image-size/large?v=v2&px=999 "2021-04-20_09-16-04.png")


author: serge calderara
body: Hello [@Samir](/t5/user/viewprofilepage/user-id/2168284) 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](https://community.atlassian.com/t5/image/serverpage/image-id/139528iDE8CF9272A249A7A/image-dimensions/448x346?v=v2 "chrome_HPJe7uibM2.png")

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

regards


author: Samir
body: Hi [@serge calderara](/t5/user/viewprofilepage/user-id/3385932) 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.