Retrieving the PagerDuty incident details and posting them on Cisco Webex Teams space and Slack channel
Know how to retrieve the PagerDuty incident details and post them on Cisco Webex Teams space and Slack channel.
About this task
Fetch the details of the incoming PagerDuty incidents and instantly post them on Cisco Webex Teams space and Slack channel.
Procedure
-
Add and configure the PagerDuty - New Incident trigger.
- In Trigger Label, enter a suitable name for the trigger. In Select Trigger, select the New Incident trigger from the options available in the drop-down list. This instructs webMethods Integration to trigger the workflow whenever a new incident is added in a particular service in your PagerDuty account.
- Authorize Pager Duty - To use this trigger, create a PagerDuty account. Click the + button and create your account using either the Default Authorization option or the service access token, that is, the Or option. If you have already created an account, select it from the drop-down list.
- Service ID - Select or specify the ID of the service for which the
trigger is to be set. In PagerDuty, the service ID is found in the URL of the service, for example,
PQQB1HE. After you have entered the details, click Done, which takes you back to the canvas.
- Add the Cisco Webex Teams connector to the canvas and connect it to the PagerDuty trigger. 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 run the action.
- Click Next.
- In the action configuration form that appears next, provide the Space ID, that is, the ID of the space on which you want to post the message. Specify the Message, that is, the message that you want to post in the space. In this case, enter a custom message, along with the output of the PagerDuty trigger. After you have entered the details, click Done, which will take you back to the canvas.
- Add the Slack connector to the canvas and connect it to the PagerDuty trigger. Next, double-click the Slack connector icon, select the chatPostMessage action from the Select Action drop-down list, and select the Slack account that you want to use to run the action. After this is done, click Next.
- In the action configuration form, in channel, enter the ID of the channel on which you want to post the message. In text, specify the message that you want to send to the channel. In this case, enter a custom message, along with the output of the PagerDuty trigger. After you have entered all the details, click Next, test the action, and click Done to return to the canvas.
- 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, the workflow sends the incident details to the specified Cisco Webex Teams space and Slack channel.