How to fetch the PagerDuty incident details and post them on Cisco Webex Teams space and Slack channel

You can fetch the details of the incoming PagerDuty incidents and instantly post them on Cisco Webex Teams space and Slack channel.

How it works

To do this, follow the steps given below:

Step 1: Add and configure the PagerDuty - New Incident trigger as instructed below:

Trigger Label: Enter a suitable name for the trigger.

Select Trigger:
Select New Incident trigger from the options available in the drop-down list. This instructs the webMethods.io Integration to trigger the workflow whenever a new incident is added in a particular service in your PagerDuty account.

Authorize PagerDuty:
In order to use this trigger, you will have to first create PagerDuty account. Click the + button, and create your account using either Default Authorization option or service access token (i.e., Or option). If you have already created an account, select it from the drop-down list.

Service ID:
Select/specify the ID of the service for which the trigger is to be set. In PagerDuty, the service ID could be found in the URL of the service. E.g.: PQQB1HE

3-PagerDuty.png


Step 2: Once you have entered the details, click Done. This will take you back to canvas.

Step 3: Add Cisco Webex Teams connector to the canvas and connect it to the PagerDuty trigger.

Step 4: Next, double-click the Cisco Webex Teams connector icon, select the Post New Message action from the Select Action drop down list, and select the Cisco Webex Teams account you want to use to execute the action.

Once this is done, click Next.

In the action configuration form that appears next, provide the details as given below:

Space ID:
Select/specify the ID of the space on which you want to post the message.

Message:
Specify the message that you want to post in the space. In this case, we will enter a custom message, along with the output of the PagerDuty trigger.

4-cisco-webex.png

Step 5: Once you have entered the details, click Done. This will take you back to canvas.

Step 6:
Add Slack connector to the canvas and connect it to the PagerDuty trigger.

Step 7:
Next, double-click the Slack connector icon, select the chatPostMessage action from the Select Action drop down list, and select the Slack account you want to use to execute the action.

Once this is done, click Next.

In the action configuration form that appears next, provide the details as given below:

channel: Enter the ID of the channel on which you want to post the message.

text:
Specify the message that you want to send to the channel. In this case, we will enter a custom message, along with the output of the PagerDuty trigger. 

5-Slack.png



Step 8: Once you have entered all the details, click the Next button, Test the action, and click the Done button to return to the canvas. 

Step 9: Connect the Cisco Webex Teams and Slack connectors to the Stop icon and Save the workflow.

Now, whenever a new incident is triggered in the specified service in PagerDuty, this workflow will send the incident details to the specified Cisco Webex Teams space and Slack channel.