• Get started
  • Documentation

Set up a custom action for an alert

A custom alert action is a way for Opsgenie users to quickly and effectively react to alerts. A custom action can be used as contextual information, or it can be an automated action such as pinging a server, creating a ticket, or running a query.

Opsgenie enables creating up to ten custom actions for each separate alert.

Set up a custom action from an integration

  1. Go to Settings > Integrations.

  2. Find the integration you’d like to create a custom action, and select Add.

  3. Select Advanced button from the header to view all settings.

  4. Find Actions under Alert fields.

  5. Enter a name for each action. Press Enter to add more actions.

Run a custom action with the Opsgenie Edge Connector (OEC)

Opsgenie uses callbacks to pass alert activity information into systems that are not accessible from the public internet. When a user executes an action on an alert, Opsgenie sends an OEC action and passes the information. Opsgenie alerts and executes any executables or script types supported by OEC, for alert actions.

This means, users can execute custom actions by combining the abilities of OEC and custom alert actions.

To run a custom action with OEC, you must first create a custom action in the integration described above. Then,

  1. Go to Settings > Integrations.

  2. Search for OEC and select Add.

  3. Scroll to Opsgenie to OEC in the integration settings and create an action mapping for the custom action you’ve created. Learn more about action filters in Opsgenie.

  4. According to the action mapping, when OEC gets the user and alert data, it will execute any executables or script types supported by OEC, associated with the relevant custom action. View sample OEC scriptsLearn more about how to configure OEC for executing these custom scripts

  5. This will execute the command for the custom action, and OEC will take action according to that.

 

Still need help?

The Atlassian Community is here for you.