Post new PagerDuty incident details to Cisco Webex Teams space and Slack channel

This workflow fetches the details of any new incident created in your PagerDuty account and sends the details of the incident to a Cisco Webex Teams space as well as a Slack channel.

To set up this workflow, you will need to use the following:

  • PagerDuty - Incident Triggered trigger
  • Cisco Webex Teams - Post New Message action
  • Slack - Post Message to Channel action

Set up PagerDuty - Incident Triggered trigger

Configure the Start icon by double-clicking on it and select the PagerDuty connector from the list of trigger service icons that appear.

The PagerDuty trigger configuration window will appear on the screen. Provide values for the input fields as per the instructions given 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.: if https://example.pagerduty.com/services/P4OPRHG is the service URL, then P4OPRHG will be the service ID.

3-PagerDuty.png

Once you have entered all the details, click on Save. You will be redirected to the Test trigger window where you can test the trigger with real-time data to use it to configure the rest of the workflow or skip testing and use mock data to configure the rest of the workflow.

After this, click on Done to return to the canvas.

Add and configure Cisco Webex Teams - Post New Message action

Add Cisco Webex Teams connector to the canvas and connect it with the Start icon (which now displays PagerDuty connector icon).

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

Once you have entered all the details, click on Next. You will be redirected to the Test action window where you can test the action.

After this, click on Done to return to the canvas.

Add and configure Slack - chatPostMessage action

Add Slack connector to your canvas and connect it with the Start icon (which now displays PagerDuty icon).

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. 

For this example tutorial, no details need to be entered in the other fields.

5-Slack.png

Once you have entered all the details, click on Next.

You will be redirected to the Test action window where you can test the action.

After this, click on Done to return to the canvas and connect the Cisco Webex Teams and Slack connector icons to the Stop icon.

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.