ServiceNow Integration

is a platform-as-a-service (PaaS) provider of enterprise Service Management (SM) software. OpsGenie is an alert and notification management solution that is highly complementary to ServiceNow.

​What does OpsGenie offer to ServiceNow users?

OpsGenie has a specific update set which allows bi-directional integration between OpsGenie and ServiceNow. Using the integration, ServiceNow sends incident events to OpsGenie, with detailed information. And OpsGenie forwards alerts as incidents to ServiceNow. OpsGenie can determine the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls and iOS & Android push notifications, and escalating alerts until the alert is acknowledged or closed.

Functionality of the Integration

  • When an incident is created in ServiceNow, an alert will be created in OpsGenie.
  • When an incident is resolved/closed in ServiceNow, the alert will be closed in OpsGenie.
  • When the incident is assigned to a group in ServiceNow, the corresponding team will be added to the alert if the name of the group in ServiceNow and the name of the team in OpsGenie match.
  • When the incident is assigned to a user in ServiceNow, the alert in OpsGenie will be assigned to the corresponding user.
  • If Send Alert Updates Back to ServiceNow is enabled, actions for ServiceNow will be executed in ServiceNow when the chosen action is executed in OpsGenie for alerts which are created by the ServiceNow integration.
  • If Create ServiceNow Incidents for OpsGenie Alerts is enabled, actions for ServiceNow will be executed in ServiceNow when the chosen action is executed in OpsGenie for alerts which have a source other than the ServiceNow integration.
  • This action mapping features are explained in detail in the Action Mapping Feature section below.

Add ServiceNow integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done already.
  2. Go to ServiceNow Integration page.
  3. Specify who should be notified for ServiceNow alerts using the "Recipients" field. User(s), group(s), escalations policies and on-call schedules can be specified as the alert recipients. Auto-complete suggestions will be provided as you type. 
  4. Copy the integration API Key by clicking on the copy button or selecting. You'll be using this in the ServiceNow configuration.
  5. Click "Save Integration".

Action Mapping Feature

  • OpsGenie allows customers to define action mappings between OpsGenie actions and ServiceNow actions.

  • For alerts created by ServiceNow
  • You can use this section to map OpsGenie actions to ServiceNow actions when the source of the alert is ServiceNow (i.e When the alert is created by ServiceNow integration.)
  • You can map different OpsGenie actions to different ServiceNow actions. For example, you can add note to ServiceNow incident, when the alert is acknowledged. In order to do this, you should define If alert is acknowledged in OpsGenie, add it as a work note to the incident in ServiceNow. mapping in Send Alert Updates Back to ServiceNow section.

  • For other OpsGenie alerts
  • You can use this section to map OpsGenie actions to ServiceNow actions when the source of the alert is NOT ServiceNow (i.e When the alert is created by another integration.)
  • For this purpose, you can use Create ServiceNow Incidents for OpsGenie Alerts section. In order to use this functionality, you need to map one OpsGenie action to create an incident ServiceNow action. The OpsGenie action doesn't have to be alert is created, it can be other actions as well.

  • a tag is added to the alert and a custom action is executed on alert actions differ from other actions. When you select one of these actions, you'll see an extra field to enter for which tags or for which custom action this mapping will work.
  • You can enter multiple tags by separating the tags with a comma. If you enter multiple tags, the mapping will work if the alert has one or more of the specified tags. You can also leave the tags field empty, if you would like the mapping to work for any tag.
  • If you select a custom action mapping, you must specify the name of the custom action that the mapping will work. It cannot be left empty.
  • If you map an OpsGenie action to multiple ServiceNow actions, you will get an error except for the a tag is added to the alert and a custom action is executed on alert actions. You can save multiple mappings for these actions, because they will differ by the given tags and the given custom action names.

Installing the Integration in ServiceNow

  1. Download the update set.
  2. Upload, preview and commit the update set to your ServiceNow instance. You can refer here. Upon success, OpsGenie application menu should appear on the navigator.
  3. Under OpsGenie, select "Script Includes". Click on the OpsGenie_Client on the right. Replace the [YOUR OPSGENIE SERVICENOW INTEGRATION API KEY] part with the API key you copied earlier and click Update.

Using Basic Authentication (Optional)


In OpsGenie
  1. The basic authentication feature is not enabled by default.
  2. In order to use it, you need to go to the advanced tab.
  3. In the settings part, you will find ServiceNow User Name (Optional) and ServiceNow Password (Optional) fields, under the Scripted REST API URL field.
  4. It's an optional feature, so you can leave the fields blank if you do would not like to use it.
  5. If you fill one of user name or password fields, you need to fill the other field to successfully save the integration. Otherwise it will show you an error.
In ServiceNow
  1. In order to enable basic authentication feature, you check "Requires Authentication" option to value for each resource of the Scripted REST API component of the OpsGenie application.
  2. You can find the Scripted REST API component, under the Scripted REST APIs menu item of the OpsGenie application.
  3. Click on opsgenie2sn in the Scripted REST APIs list.
  4. You will find Resources tab in the bottom of the page.
  5. For each resource in the list, you need to click on the resource to open it, and then check the Requires Authentication option to value.
  6. You can find the option under the security tab.