ServiceNow Integration Guide | PagerDuty

Configuring the v7.6 Integration

ServiceNow + PagerDuty Integration Benefits

  • Leverage ServiceNow’s workflow and ticketing capabilities with PagerDuty’s robust on-call scheduling, notifications and escalations.
  • Run Response Plays, post status updates and set the impacted Business Service on a PagerDuty incident all from the ServiceNow interface.
  • Perform Assignment Group and priority mapping to PagerDuty escalation policies.
  • Provision Business and technical services from ServiceNow to PagerDuty along with their dependency relationships.
  • Send ServiceNow change requests to PagerDuty as change events.
  • Author custom code for outbound REST API calls.
  • MID server support.

Version

This guide details configuration for the latest ServiceNow v7.6 integration.

📘

Looking for another version?

The ServiceNow v6 integration is also available.

How it Works

Incident communication between ServiceNow and PagerDuty is bi-directional, allowing users to trigger, reassign, resolve, use response plays, post status updates and set impacted Business Services in either system. The following workflows are supported:

  • Third party monitoring tool integrations detect an issue and trigger an incident in PagerDuty. Users receive notifications from PagerDuty and they can acknowledge/resolve via PagerDuty. A ServiceNow ticket is opened when a PagerDuty incident is triggered and above actions are kept in sync for the lifecycle of the incident.
  • A ticket is filed in ServiceNow, which automatically triggers an incident in PagerDuty and notifies the user. The user takes ownership via PagerDuty, and above actions from PagerDuty are kept in sync with ServiceNow.

Requirements

In ServiceNow:

  • A ServiceNow Administrator role is required for configuration.

In PagerDuty:

  • An Admin, Global Admin or Account Owner base role is required for configuration.
  • If you're not sure what role you have, or if you need your permissions adjusted, visit our sections on Checking Your User Role or Changing User Roles.

Quick Links

Version

This guide details configuration for the latest ServiceNow v7.6 integration.

Integration Walkthrough

🚧

Assignment Groups/Change Groups

Assignment Groups are now referred to as Change Groups in ServiceNow Quebec, and these terms are interchangeable in this guide.

Step 1: Complete ServiceNow Pre-Install Requirements

1.1 ServiceNow Application Access Controls

In order for the integration to function, a ServiceNow administrator must allow configuration access in the following ServiceNow tables. In the left hand application navigator, search System Definition and select the Tables module. Search for and open the following records and perform the specified actions:

sys_user, sys_user_group, and sys_user_grmember

Select the Application Access tab and ensure the following are checked:

  • Can read
  • Can create
  • Can Update
  • Allow configuration

Click Update in the upper right of each to save.

1.2 Integration Installation

Install the PagerDuty integration from the ServiceNow Store.

1.3 Add PagerDuty Fields to Views (Optional)

If you wish to view the PagerDuty ID fields within ServiceNow, they will need to be manually added to the Group, User and Incident views. This will make it easier to see which ServiceNow objects are mapped to PagerDuty. Instructions are detailed in Show or hide fields on a form in ServiceNow’s documentation.

  1. It is recommended that you add the PagerDuty fields to the User and Group list views by clicking the gear icon in the upper left corner of the grid to customize the display of columns. This will make them visible in your list views only.
  1. The following is the list of available PagerDuty fields that you can add to the various list views or forms in ServiceNow:

List Views and Forms

PagerDuty Fields

User list view and user form

  • PagerDuty service
  • PagerDuty escalation
  • PagerDuty webhook
  • PagerDuty team
  • PagerDuty schedule

Group list view and individual Group form

  • PagerDuty service
  • PagerDuty escalation
  • PagerDuty webhook
  • PagerDuty team
  • PagerDuty schedule

CMDB CI Application list view and individual CI form

  • PagerDuty service
  • PagerDuty webhook

Incident list view and Incident form

  • PagerDuty ID

Step 2: Configuration In PagerDuty

2.1 Create a PagerDuty API Access Key

  1. Log in to your PagerDuty account in the web app. Navigate to Integrations API Access Keys.
  2. On the API Access Keys page, click the Create New API Key button.
  1. In the dialog that pops up, enter a Description for your key. You will also have the option to create the key as Read-only; leave this box unchecked as a full API key is required. Click Create key to save.
  2. Next you will see a dialog displaying your API key. Copy this key and save it in a secure place, as you will not have access to the key after this step. If you lose a key that you created previously and need access to it again, you should remove the key and create a new one. Click Close once you have successfully copied and saved your key.

2.2 Create a Default PagerDuty User Account for ServiceNow

This integration requires ServiceNow to have access to your PagerDuty account both by an API token and a PagerDuty user account. The PagerDuty user account is required so that non-PagerDuty users can take action in ServiceNow and the actions will be reflected in PagerDuty.

🚧

Important Note

This integration now has the option to provision a Default User from the ServiceNow UI, however this function has stipulations to consider:

  • When provisioning the Default User, it will create a PagerDuty user based on the user who is logged in to ServiceNow and configuring this setting. If you are okay with being provisioned as the Default ServiceNow user, please follow directions in this section and then move on to Step 3: Configuration in Your ServiceNow Instance.
  • If you do not want to be provisioned as the Default ServiceNow user in PagerDuty, please proceed with the steps below.
  1. In your PagerDuty account, navigate to People, select Users and click the green Add Users button.
  2. Enter ServiceNow User in the Name field and enter any valid email address in the Email field. Copy this email and save it in a safe place for later steps when you will be entering it into ServiceNow. Once you have saved this email, select Manager as the Base Role and click Add and Send Invitations to save.
  3. You will now see the ServiceNow User in your PagerDuty Users list. Click the user name and take note of the 7-character alphanumeric user ID in the URL of this page. E.g., If your URL reads https://your-subdomain.pagerduty.com/users/PXXXXXX the user ID would be PXXXXXX. Copy this user ID and keep it, along with this users’ email, in a safe place. In later steps, you will also be entering this user ID into ServiceNow.

Step 3: Configuration in Your ServiceNow Instance

3.1 Create a ServiceNow User Account For Webhook Authentication

The PagerDuty integration also requires a ServiceNow user account to operate under. This enables PagerDuty to sync actions back to ServiceNow via webhooks. This design serves as a security feature, and allows you to control the integration’s permissions and roles within ServiceNow.

  1. Log in to your ServiceNow instance. In the ServiceNow application navigator, search Organization Users and click New to create a new user account for PagerDuty application use.
  2. Enter a User ID, First/Last name and Password for the user. You can use any desired username and password. Copy the username and password and keep them in a safe place, as you will need to provide them in the PagerDuty Settings (within the ServiceNow UI) in a later step. If the Web service access only and Internal Integration User options are available, you can optionally select these checkboxes.
  1. In the Email field, enter the same email that you entered for the new user in PagerDuty (step 2 of the Create a Default User Account for ServiceNow section, above). This will result in requests being properly formatted with a PagerDuty-From header. Click Submit and then search and click into the user profile.
  2. Under the Roles tab, select Edit and assign to the user the following three roles: itil, rest_service, and x_pd_integration.admin. Click Save to be returned to the User form.

The new user account that you created requires the ability to make API requests. This allows PagerDuty to create incidents in ServiceNow and action existing Incidents (such as changing assignment). If your ServiceNow instance allows all users to perform REST API calls, providing the itil and the x_pd_integration.admin role should be sufficient. If REST API access is restricted by role, provide the necessary role to the user account. In many cases, this is either the snc_platform_rest_api_access or the rest_service role.

  1. In the PagerDuty ID field, enter the 7 character user ID of the default PagerDuty user account (generated in step 3 of Create a Default PagerDuty User Account for ServiceNow, above).

To summarize what should be completed this far:

  • A default PagerDuty user account has been created for ServiceNow to use.
  • An API Key has been created in PagerDuty.
  • A ServiceNow user account has been created for the PagerDuty integration to use.
  • The above user accounts have been mapped to each other via their shared email address and the PagerDuty User ID.

If all of these prerequisites have been fulfilled, Update the user record in ServiceNow. You may now begin configuring the PagerDuty Settings page in ServiceNow.

3.2: Configure PagerDuty Settings in ServiceNow

Please note that most of the settings for the integration can be set by navigating to the PagerDuty application Configuration PagerDuty Settings, accessed through the application navigator of your ServiceNow instance:

You may see a warning at the top of the page indicating that you need to switch into the PagerDuty application scope. Proceed with this step if you are prompted. Once done, the PagerDuty Settings page should become editable.

  1. In your ServiceNow instance, navigate to PagerDuty Configuration PagerDuty Settings in the application navigator, and enter the user ID and password of the new ServiceNow user into the ServiceNow user for authentication and ServiceNow user password for authentication fields.

  2. Input information in the following fields:

Field

Input Instructions

Choose ServiceNow to PagerDuty mapping

Enter your PagerDuty subdomain URL, e.g., yoursubdomain.pagerduty.com.

PagerDuty API access key

Enter the API key generated in the steps above.

Default Service ID

You have the option to provision a paging service by clicking Provision default service. If you do not want to provision and already have a service in mind, you may copy the 7-character ID starting with P at the end of the URL of that service and paste it into this field.

Default User ID

There are two options for this field depending on how you’ve chosen to assign the Default PagerDuty User in step 2.2, above:

  • If you have already created a Default PagerDuty User in PagerDuty (Recommended): Enter the user ID of the default user you created in PagerDuty (the 7-character alphanumeric ID starting with P from step 3 of the Create a Default User Account for ServiceNow section above). Setting the default PagerDuty user, and doing so correctly, is important. The default PagerDuty ID must be a PagerDuty user ID, not a ServiceNow user ID or email address. Moreover, the PagerDuty user's default role must be at least Manager or higher. This ensures that ServiceNow users who do not have a PagerDuty account can perform the provisioning of users/groups, etc. If not all of these conditions are met, the integration will be unable to reassign or resolve incidents in PagerDuty when they are reassigned or resolved by a user in ServiceNow who does not have any corresponding PagerDuty account. It may also impact the ability to provision users and groups from ServiceNow to PagerDuty.

  • If you would like to provision a Default PagerDuty User: Please note that this will provision a PagerDuty user based on whomever is clicking this button. If you do not want to be the default user, you must create one in PagerDuty by following these instructions. If you do want to be provisioned as the default user, click Provision default user and the User ID will auto-populate.

REST API Endpoint

This should be left as the default, https://api.pagerduty.com.

Once you have provided the necessary configuration on the PagerDuty Settings page, click Save.

  1. Validate that the integration works by clicking Actions Test REST API Connection. You should get a Connection test successful (200) response if everything is working properly.

  2. Validate that the ServiceNow user account was successfully configured by clicking Actions Test ServiceNow User Authentication. You should get a ServiceNow user authentication test successful (200) response if everything is working properly. Upon successful completion of the two tests, initial configuration is now complete.

  3. Validate that the Default User settings were properly configured. To do this, click Test Default User Settings. You should see a series of success messages. If you do not receive a success message, you will be informed if there are any changes required.

3.3 Add the ServiceNow Extension to an Existing PagerDuty Service

If you would like to add the ServiceNow extension to an existing PagerDuty service, as opposed to creating a new one, use the following instructions. If you wish to create a new service, please skip this section and move on to Step 3.4: Review PagerDuty Settings in ServiceNow.

Option 1: Manually Configure the Extension in PagerDuty

This option requires that you have access to the username and password of the ServiceNow account that PagerDuty uses.

  1. In your PagerDuty account, navigate to Services Service Directory click the service name and click Create Extension.
  2. In the Extension Type field, search and select ServiceNow (v7) and enter a Name in the format servicenow-service-name (e.g., servicenow-shopping-cart). In the following fields, enter:

Field

Input Instructions

ServiceNow URL

Enter the URL in the following format:
https://[INSTANCE-NAME].service-now.com/api/x_pd_integration/pagerduty2sn

ServiceNow User ID and ServiceNow Password

Enter the User ID and Password created in step 2 of the Create an Integration User Account For Webhook Authentication section, above.

Sync Options

Choose your preference:

  • Sync All Incidents will sync all new incidents to your ServiceNow instance.
  • Manually Sync Incidents allows you to choose which incidents you want to sync, by adding the option to Sync with ServiceNow on the incident details page.

Incident Type

Choose your preference:

  • Incident will create Incidents in ServiceNow.
  • Security Incident will generate a ServiceNow Security Incident.
  1. Click Save.

Option 2: Use the ServiceNow Integration to Provision the PagerDuty Extension

This method does not require access to the username and password of the ServiceNow account that PagerDuty uses. Instead, access to the x_pd_integration.admin role in ServiceNow is required so that you can provision a new PagerDuty Extension using the integration.

  1. Identify how ServiceNow maps to PagerDuty. ServiceNow can map Configuration Groups and Assignment Groups to PagerDuty, or just Assignment Groups. This is configured on the PagerDuty Settings page within ServiceNow.

    • If you are only mapping Assignment Groups, navigate to the Assignment Group that you want to map to PagerDuty.
    • If you map Configuration Items to PagerDuty, navigate to the Configuration Item that you want to map to PagerDuty.
  2. Open the record in ServiceNow. You should see a number of PagerDuty fields that are blank. You will be populating the PagerDuty Service field.

📘

Note

If the PagerDuty Service ID is not blank, it means that the object is already mapped to PagerDuty.

  1. In PagerDuty, using your web browser, navigate to Services Service Directory and select the existing service that is configured. In the URL bar, you will find the 7-character Service ID starting with the letter P. Copy the Service ID to your clipboard.
  2. In ServiceNow, paste the Service ID in the PagerDuty Service field.
  3. Click Save. If you are redirected back to the list view in ServiceNow, open the record again.
  4. In the Related Links section, you should now see an option to Provision Webhook. Selecting this option will create the corresponding extension in PagerDuty and complete the mapping for you.

3.4 Review PagerDuty Settings in ServiceNow

Other global settings for the PagerDuty integration can be found in the same PagerDuty Configuration PagerDuty Settings page as used above to configure the API connection. Depending on your preferences, you may choose to use the following settings:

Settings

Options

Integration Behavior

  • Choose ServiceNow to PagerDuty mapping: Select whether or not Assignment Groups should map to PagerDuty or if Configuration Items and Assignment Groups should map to PagerDuty. You can learn more about the differences in the section Choose how ServiceNow Objects Map to PagerDuty Objects.

  • Incident state value to use when PagerDuty resolves an incident: Select the integer value associated with the Resolved state in your ServiceNow instance. If this value is customized, please be sure to select the appropriate value here.

  • Resolve PagerDuty incident if ServiceNow incident is assigned to a group that doesn’t exist in PagerDuty: Choose whether or not an incident in PagerDuty should be resolved if it is assigned to a group that doesn’t exist (has been mapped to) PagerDuty. This is useful if not all ServiceNow Groups are mapped to PagerDuty escalation policies.

  • Create a new PagerDuty user if one is not found with the ServiceNow user’s email: Optionally auto provision ServiceNow users to PagerDuty when they are assigned to or manage an incident in ServiceNow. This may impact billing on your account.

  • Do not assign the ServiceNow incident until a PagerDuty user has acknowledged the incident.

  • Provision current Assignment Group members into PagerDuty when provisioning Assignment Groups: Optionally auto-provision all users who are part of an Assignment Group when the Assignment Group is provisioned to PagerDuty.

  • Create PagerDuty Schedule when provisioning Assignment Groups: Automatically create a new schedule for Assignment Groups that are provisioned from ServiceNow to PagerDuty. When a schedule is created, the Manager for the Assignment Group will be added to the schedule. The schedule then needs to be populated with other users in PagerDuty.

  • Use PagerDuty teams: Make use of the PagerDuty Teams functionality along with assignment groups in ServiceNow.

  • Create PagerDuty Team when provisioning Assignment Groups: When enabled, a PagerDuty Team will be created when you provision an Assignment Group from ServiceNow to PagerDuty. This will also, by default, provision the Manager user of that group, even if the setting Provision current Assignment Group members into PagerDuty when provisioning Assignment Groups is not enabled. If no manager is assigned to the Assignment Group, the integration will use the current user (clicking to provision) as the manager.

  • Enable Response Mobilizer: When enabled, you will be able to add one or more users as responders to an existing incident from the ServiceNow interface. Response Mobilizer features are part of the PagerDuty Modern Incident Response add-on product, which is purchased separately from the PagerDuty platform.

  • Enable Conference Bridges: When enabled, you will be able to add conference bridge information to an incident, from the ServiceNow interface. Conference Bridge features are part of the PagerDuty Modern Incident Response add-on product, which is purchased separately from the PagerDuty platform.

  • Enable Response Play feature: When enabled, you will be able to run response plays in PagerDuty from the ServiceNow interface. Response Plays are available on our Digital Operations plan and as part of our PagerDuty Modern Incident Response package.

  • Enable Status Update Feature: When enabled, you will be able to compose and send Status Updates to the PagerDuty Status Dashboard from the ServiceNow interface. The Status Dashboard is available on PagerDuty Team, Business and Digital Operations plans.

PagerDuty Settings

  • Choose ServiceNow to PagerDuty mapping: Your PagerDuty subdomain URL, e.g., yoursubdomain.pagerduty.com.

  • PagerDuty API access key: The API key that was generated as part of the configuration process, used to authenticate with the PagerDuty REST API.

  • Default Service ID: You have the option to provision a paging service by clicking Provision default service. If you do not want to provision and already have a service in mind, you may copy the 7-character ID starting with P at the end of the URL of that service and paste it into this field.

  • Default User ID: This PagerDuty account will be used to make API requests (from ServiceNow to PagerDuty) if the user performing an action in ServiceNow does not exist in PagerDuty. You may either create a Default User in PagerDuty (recommended) or provision one from this field in ServiceNow. Please note that if you choose to provision from ServiceNow, you will be provisioned as the Default User in PagerDuty. Omitting this field could result in incidents not being created in PagerDuty, if they are created by ServiceNow users that have not been provisioned to PagerDuty.

  • REST API Endpoint: This should be left as the default, https://api.pagerduty.com.

ServiceNow Settings

  • ServiceNow user for authentication: The username that PagerDuty should use to authenticate with ServiceNow for webhook delivery.

  • ServiceNow user password for authentication: The corresponding password to the aforementioned user.

  • ServiceNow REST endpoint for webhook callback: Optionally modify the path that PagerDuty uses to send webhooks to. It is recommended that you leave this value as is.

Legacy Settings

  • Logging verbosity level: Modify the amount of information contained in the logs for the PagerDuty integration. Default value is info, consider changing to debug if you need to troubleshoot.

3.5 Choose How ServiceNow Objects Map to PagerDuty Objects

The option Choose ServiceNow to PagerDuty mapping on the PagerDuty Configuration PagerDuty Settings page allows the following two options for the correspondence between systems:

  • ServiceNow Assignment Groups map to PagerDuty
    • Assignment Groups will map to both a PagerDuty Service and a PagerDuty Escalation Policy
  • ServiceNow Configuration Items and Assignment Groups map to PagerDuty
    • Configuration Items map to PagerDuty Services
    • Assignment Groups map to PagerDuty Escalation Policies

The following diagram represents the mapping between objects in both systems when Configuration Items and Assignment Groups map to PagerDuty:

Step 4: Provisioning from ServiceNow to PagerDuty

In order to create a bi-directional sync between PagerDuty and ServiceNow, you must provision an Assignment Group into PagerDuty. Assignment Groups provisioned will create PagerDuty services and associated escalation policies where ServiceNow incidents will be triggered.

You may also optionally choose to provision Configuration Items, Services, Users and Priority from ServiceNow to PagerDuty.

4.1 Provision Assignment Group(s) to PagerDuty (Required)

With the PagerDuty integration, each ServiceNow assignment group will correspond to a PagerDuty escalation policy to ensure that incidents will be assigned correctly in PagerDuty. In this latest version, assignment groups provisioned to PagerDuty as services will have a default escalation policy and you will have the option to add additional escalation policies mapped to ServiceNow incident priorities. You can also enable settings to automatically create a PagerDuty schedule and team when a group is provisioned from ServiceNow.

Depending on which mapping you choose on the Settings page, some PagerDuty attributes will not be set on Assignment Groups:

  • If you choose Assignment Groups map to PagerDuty, each Assignment Group will have a corresponding PagerDuty escalation, service, and webhook ID. Optionally, each Assignment Group will also have a PagerDuty schedule and team ID.
  • If you choose Configuration Items and Assignment Groups map to PagerDuty, each Assignment Group will only have a PagerDuty escalation ID (optionally, Assignment Groups will also have a corresponding PagerDuty schedule and team ID). The PagerDuty service and webhook ID is mapped to your Configuration Items in ServiceNow.

📘

Note

The user provisioning assignment groups from ServiceNow to PagerDuty must have a PagerDuty user ID attached to their account in ServiceNow.

  1. Navigate to User Administration and click Groups. Select an assignment group that you would like to provision to PagerDuty. Then, click on the Provision Group into PagerDuty link to deploy this group to your PagerDuty instance.
  1. You should see a notification that the assignment group will be created. Once it’s complete, the PagerDuty service, PagerDuty escalation, and PagerDuty webhook fields will be populated within the Assignment Group.
    The Assignment Group will also have a corresponding schedule ID and team ID if these were enabled in the PagerDuty Settings UI.
  2. Lastly, you will find that the corresponding service and escalation policy have been created in PagerDuty. The service also has the webhook automatically created, which powers the bi-directional sync between PagerDuty and ServiceNow. The webhook contains the shared secret in the URL, enhancing the security of the communications.
  3. You can also provision multiple groups at once by selecting them and clicking on the Provision Group into PagerDuty option from the dropdown menu on the Groups list view.

Please follow documentation here to add additional priority-mapped escalation policies to your Assignment Group.

  1. Lastly, you will need to review the Sync Group Members with PagerDuty setting for your provisioned Assignment Groups. Enabling this option allows the integration to check if newly added Assignment Group members have a PagerDuty account. If they do not have an account, it will then provision them and add the user to the PagerDuty team associated with the group.

4.2 Provision Configuration Items and Users to PagerDuty (Optional)

📘

Note

If you have selected Assignment Groups map to PagerDuty in the PagerDuty Settings UI, you can skip this step. You will not need to provision Configuration Items into PagerDuty.

See our Advanced ServiceNow Configuration guide for more instructions on how to provision CIs and users from ServiceNow to PagerDuty.

Step 5: Test the Integration

To verify that that PagerDuty and ServiceNow are communicating:

  1. Search and select PagerDuty Incidents in the application navigator. Click New to create a new incident.
  2. In the Caller field, enter the ServiceNow user mapped to your PagerDuty account. Enter a Short description which will become the incident Title. In the Assignment Group field, search and select the Assignment Group mapped to PagerDuty. Enter any other preferred information on this page and click Submit in the upper right.
  3. You should now see an incident in your PagerDuty account on the service that was mapped with your Assignment Group.

Below is an incident that was assigned to the Database group which is mapped to PagerDuty. It was then reassigned to the CAB Approval group, as shown in the Activity log.

Once the incident is resolved in PagerDuty, it will be resolved in ServiceNow and vice versa. ServiceNow also maintains a log of what activities have taken place within PagerDuty.

Note: Once you have successfully installed and configured the PagerDuty application in your ServiceNow instance, it is highly recommended that you index the following columns in ServiceNow:

  • incident.x_pd_integration_incident
  • sys_user_group.x_pd_integration_pagerduty_escalation
  • sys_user.x_pd_integration_pagerduty_id
  • cmdb_ci.x_pd_integration_pagerduty_service

This will ensure optimal performance when the PagerDuty application is querying the incidents, group, user and CMDB tables

Configure the ServiceNow Change Events Integration

Once you have set up the ServiceNow integration (instructions above), you can configure it to send change events by following our instructions here.

Configure Escalation Policy Priority Mapping

The ServiceNow v7 integration allows Assignment Groups to have more than one escalation policy assigned to incidents based on incident priority in ServiceNow. For example, if you would like one escalation policy assigned to incidents with a priority of Moderate or below and another for priorities above Moderate, you could map escalation policies to this scheme. There are two ways to configure this feature: via the PagerDuty menu or on an individual Assignment Group.

To configure escalation policy priority mapping via the PagerDuty menu:

  1. Navigate to PagerDuty in the application navigator and select Map Priority to Escalation Policy.
  2. Click New and select the Assignment Group, Escalation Policy and Priority you wish to map and check the Active checkbox.
  3. Click Submit to save. If you would like to deactivate this mapping, return to the Map Priority to Escalation Policy screen, click the status in the Active column, uncheck the Active checkbox and click Update. You may repeat this process to map multiple escalation policies to different priorities.

To configure escalation policy priority mapping on an individual Assignment Group:

  1. Search and click into your preferred Assignment Group. Select the PagerDuty Escalation Policies tab and click New.
  2. In the Escalation Policy field, search and select your preferred escalation policy. In the Priority field, search and select which priority should be mapped to that escalation policy. Check the Active checkbox to activate this setting and click Submit. You may repeat this process to map multiple escalation policies to different priorities.

Once configured, when an incident is assigned to that assignment group and the mapped priority, the mapped escalation policy will be assigned to that incident.

Author Custom Code for Outbound API Calls

  1. Navigate to PagerDuty Settings in the application navigator and scroll to the PagerDuty API requests customization section.
  2. Enter your custom headers, one per line without quotes (e.g., name: value).
  3. Click Save.

You may also author custom code when configuring a MID server, below.

Configure a MID Server

The ServiceNow v7 integration comes with optional MID server support.

To configure a MID server:

  1. Navigate to PagerDuty in the application navigator and select PagerDuty Settings. Under PagerDuty API requests customization check the Use MID Server checkbox.
  2. The Set MID Server field will have the default MID server auto-populated. Enter your parameters in the ECC parameters field.
  3. Click Save.

Use PagerDuty Actions in ServiceNow

The latest version of PagerDuty’s ServiceNow integration allows ServiceNow users to utilize PagerDuty’s Add Responders, Conference Bridge, Response Plays and Status Update capabilities within the ServiceNow interface. This suite of actions is an extension of previous versions which also allow users to trigger, reassign and resolve PagerDuty incidents from ServiceNow. To use these capabilities within ServiceNow, users must have a new role added to their ServiceNow user record: x_pd_integration.incident_response.

Trigger and Resolve an Incident from ServiceNow

Note: Acknowledge is not available in ServiceNow at this time.

To trigger a PagerDuty incident from ServiceNow:

  1. Search and select PagerDuty Incidents in the application navigator. Click New to create a new incident.
  2. In the Caller field, enter the ServiceNow user mapped to your PagerDuty account. Enter a Short description which will become the incident Title. In the Assignment Group field, search and select the Assignment Group mapped to PagerDuty. Enter any other preferred information on this page and click Submit in the upper right.
  3. You should now see an incident in your PagerDuty account on the service that was mapped with your Assignment Group. If you would like a link back to the ServiceNow incident, click the incident title in PagerDuty and click View in ServiceNow (PD v7) in the incident Details section.

To resolve an incident from ServiceNow:

  1. Search and select PagerDuty Incidents in the application navigator.
  2. Click the incident number of your preferred incident to view its details. Select the Resolution Information tab and select the Resolution Code and enter Resolution Notes.
  3. Click Resolve below. This will also resolve the incident in PagerDuty.

Add Responders from ServiceNow

  1. Search and select PagerDuty Incidents in the application navigator.
  2. Click the incident number of your preferred incident to view its details. Scroll down below the Notes tab and click Add Responders. Enter the Assignment Group and User. You may optionally want to add a Message that will be sent to the responder and/or Add Conference Bridge to the incident on this screen.
  3. Click Add Responders to send.

Add a Conference Bridge from ServiceNow

  1. Search and select PagerDuty Incidents in the application navigator.
  2. Click the incident number of your preferred incident to view its details. Scroll down below the Notes tab and click Add Conference Bridge.
  3. If you have a Conference Bridge already configured in PagerDuty, you may select it from the Conference Bridge dropdown. Otherwise, you may enter the Dial-In Number and/or URL manually.
  4. Click Add Conference Bridge

Note: You may also optionally add a Conference Bridge while you are adding responders. Please follow instructions above in Add Responders in ServiceNow.

Run a Response Play from ServiceNow

  1. Search and select PagerDuty Incidents in the application navigator.
  2. Click the incident number of your preferred incident to view its details. Scroll down below the Notes tab and click Run Response Play.
  3. Select your preferred response play from the Select Response Play dropdown and click Continue to run the play.

Post a Status Update from ServiceNow

  1. Search and select PagerDuty Incidents in the application navigator.
  2. Click the incident number of your preferred incident to view its details. Scroll down below the Notes tab and click Send Status Update.
  3. If there is a Business Service dependency mapped to this service, it will automatically populate in the Impacted Business Service field. If the status update will post to the Status Dashboard, you will see a dialog stating This update will be published to your PagerDuty status dashboard. If you do not see this dialog, please check your configuration in PagerDuty.
  4. Enter your status update message in the Status Update field and click Send Update.

Refresh PagerDuty Business Services, Services, Escalation Policies and Priorities From ServiceNow

To refresh PagerDuty Business Services, Services, Escalation Policies and Priorities From ServiceNow, navigate to PagerDuty Actions and click the Refresh [PAGERDUTY-OBJECT] option for the appropriate object.

Upgrade Your PagerDuty Integration

Before starting the upgrade process for your PagerDuty integration, there are some detailed action items listed under the Tips For Upgrading section in this Community Post. Specifically:

  1. Revert customizations prior to upgrading from the store, as the upgrade path will not patch customized/modified files. Be sure to capture these customizations in an update set and store a copy for future reference before reverting to the out-of-the-box versions.
  2. After reverting all app files, upgrade the PagerDuty app to the newest version in the ServiceNow Store.
  3. Then, Navigate to System Diagnostics Upgrade History, then select the upgrade of the PagerDuty app that you just ran. You should see in the tab Skipped Changes to Review a list of records that did not upgrade successfully for some reason or another. Important misses will be marked Priority 2 or Priority 1; if there are any high-priority skipped files in that list (Priority 1 or 2), go through each in turn by clicking on their File name. On the following details page click the button Revert to Base System – this will override the customizations that prevented upgrade and will force-upgrade the file to the version of the PagerDuty app you’ve just installed. Lower priority skipped files should be left as is.
  4. Update the PagerDuty Settings page, and run both the Test REST API Connection and the Test ServiceNow User Authentication scripts to ensure a success (200) status code.
  5. Then, run the Migrate Webhooks to v7 script.
  6. Next, run the MIGRATE Escalation Policies to… script. This will ensure that the existing escalation policy to assignment group mapping is also added to the new table with the priority value empty to denote the default escalation policy.
  7. Once you have successfully upgraded, determine what (if any) customizations need to be reapplied after the install.

Updated 8 days ago


ServiceNow Integration Guide | PagerDuty


Configuring the v7.6 Integration

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.