After completing the initial configuration, you can manage PagerDuty incidents in Slack.
In order for users to be able to perform PagerDuty actions from within Slack or create new channel connections on the PagerDuty side, users must first link their PagerDuty and Slack user accounts. This user-linking can be performed by each user as soon as the initial configuration has been completed for a given PagerDuty account and Slack workspace and can be initiated from either PagerDuty or Slack. The following describes how to link user accounts from Slack:
- In a public Slack channel, run the command
/pd oncall, then, if prompted, choose the desired PagerDuty account.
- You'll receive a private message prompt in the same Slack channel; click the provided hyperlink to link your accounts.
- You’ll be directed to log into your PagerDuty account (make sure that you select the correct region and correct sign-on method (SSO or not) appropriate to your PagerDuty account); once you’ve completed authentication to the PagerDuty account, your Slack and PagerDuty users have been successfully linked.
Once the updated integration has been installed, new slash commands will be available. You can run the following slash commands from any Slack channel that is connected with PagerDuty:
/pd help: Display a help message with a list of available slash commands.
/pd trigger: Trigger a new PagerDuty incident within the Slack interface.
/pd unlink: Unlink your current Slack user from your PagerDuty user.
/pd invite @[Slack User Name]: Invites the specified Slack user as a responder to your PagerDuty account.
/pd oncall: View who is on call for a PagerDuty service.
/pd insights: Configure the PagerDuty Analytics Slack integration to send recurring insights to Slack.
If your PagerDuty account is in the EU service region, you'll need to use
/pdeuto run all slash commands instead of
/pd oncallrequires channel-specific permissions. You must invite
@PagerDutyto private Slack channels in order to use this Slack slash command.
It is not possible to use this command in other direct messages outside of a direct message with
When an incident is triggered, the incident notification message in Slack will display options for the following incident actions:
- Acknowledge: Acknowledge the incident.
- Resolve: Resolve the incident.
- Run a Workflow: Run an Incident Workflow.
- Click Run a Workflow.
- Select an Incident Workflow from the dropdown.
- Click Run.
- More actions…: Select the dropdown to access the below actions. Note: Not all actions are available on all pricing plans. Please contact Sales to upgrade to a pricing plan that offers any features not present in your account.
- Add a Note : Add a note to the incident.
- Add Responder: Add a responder to the incident.
- View Details: View incident details within the PagerDuty web app.
- Change Priority : Change an incident’s priority.
- Reassign: Reassign the incident to another user.
- Escalate: Escalate the incident to the next on-call responder.
- View | Create Channel: Create an on-demand Slack channel for the current incident.
- New Status Update: Create a new status update for the incident.
- Run a Play: Run a Response Play.
- Run an Action: Run an Automation Action.
View customer service application impact during an incident in Slack. Services with Salesforce or Zendesk integrations will list the number of cases related to the current incident, with links to individual cases.
To view individual cases:
- To the right of the application you would like to view, click
- You will see a list of related cases in the modal that appears. Click a case number to navigate to the integrated application and view the case.
With this integration, PagerDuty users can create on-demand Slack channels from PagerDuty incidents, and from Slack incident notifications. The following features are available:
- You may fully manage the incident using incident actions.
- View all incident updates within the channel.
- Added responders will be automatically added to the channel.
- A dynamic conference bridge will be automatically added to the incident channel.
- When you click Set Channel you may be prompted to authorize the connection between your PagerDuty and Slack accounts again, as PagerDuty will attempt to create a channel on behalf of your Slack user account.
- You will only be able to view channels that you have permission to access in Slack.
- If you do not have permission in Slack to create channels, you will not be able to create them from a PagerDuty incident’s Set Channel link.
- If your PagerDuty account is connected to multiple Slack workspaces, you will have the option to select which workspace to use.
- In the PagerDuty web app, navigate to your desired PagerDuty incident and click its Title to view the incident details screen.
- Click Set Channel to create an incident-specific Slack channel.
- Select from the following options:
- Select existing Slack channel for this incident: Search and select an existing Slack channel.
- Create a new Slack channel for this incident: You may use the auto-populated incident Slack channel title, or enter a new one. You may also select whether you would like the channel to be Public or Private.
- Click Set Channel.
- The channel will be automatically created in Slack.
- In Slack, navigate to your desired PagerDuty incident notification.
- Click More actions... and select View | Create Channel. The integration will automatically create a Slack channel (which will include a Zoom conference bridge link) for this incident.
Slack workflows can be used to trigger PagerDuty incidents from Slack with pre-configured details such as the associated service and priority. This option is useful for employees who do not have PagerDuty licenses, but still need to be able to trigger PagerDuty incidents in Slack.
- In your Slack desktop app, click your workspace name dropdown in the top left and select Tools Workflow Builder. Click Create on the right, enter a workflow name, such as
Trigger PD incident, and click Next.
- Click Select next to Shortcut, select your preferred channel under Which channel?, enter a name under Add a short name, such as
Trigger PD incident, and then click Next.
- Next you will create a form for users to enter information about the incident. Click Add Step search for or select Send a form click Add.
- In the Send a form modal, enter the following information:
|Title||Enter a Title for the form, such as |
|Add a question||Enter |
|Choose a question type||Select |
|Make this required||Enable this checkbox.|
|Send submitted responses to a channel or to someone in a DM||Uncheck this checkbox.|
- Click Save.
- Next, click Add Step search for or select Trigger PagerDuty incident Add.
- If prompted, sign into your PagerDuty account, click Sign in. Once signed in, the Trigger PagerDuty Incident step will be added to your Slack workflow.
- Select your preferred Impacted service, optionally select the Assign to user and optionally select your preferred Priority.
- Under the Title textfield, click Insert a variable and select Response to: “Title” to add the
- Click Save.
If you would like to add an optional message when someone uses this workflow, continue to step 10. If you do not want to add a message, skip to step 11.
- Send a Message With Workflow (Optional): Click Add Step and click Add next to Send a message. Under Send this message to: select Channel where workflow started. Under Message text enter your preferred message to be sent with the workflow. You have the option to include variables such as Impacted technical service, Incident number, Incident title, and Incident url by clicking Insert a variable under the message form. Click Save.
- Click Publish in the upper right to publish your workflow.
- In your Slack desktop app, select a channel with an Incident Trigger Slack Workflow configured click the Shortcuts at the bottom left of your text field select the
Trigger PD incidentworkflow.
- Enter a Title for the incident and click Submit.
This will create an incident in PagerDuty, and you will also be able to see the incident details in your Slack channel.
Updated about 1 month ago