Post new Pagerduty incident details to Cisco Spark room and Slack channel

  1. Set up Pagerduty ‘Incident Triggered’ trigger

    This flow fetches the details of any new incident triggered in your Pagerduty account, and sends the details of the incident to a Cisco Spark room as well as a channel on Slack.

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


    • Pagerduty ‘Incident Triggered’ trigger
    • Cisco Spark ‘Post New Message’ activity
    • Slack ‘Post Message to Channel’


    Configure the 'Start' icon. Drag and drop 'Pagerduty' in the given box. Enter value in the fields as per the instructions given below.


    Trigger Name: Enter a suitable name for the trigger.


    Select Trigger: Select ‘Incident triggered’ from the options available in the drop-down list. This instructs the flow to trigger whenever a new incident is triggered in a particular service in your Pagerduty account.


    API Key: Enter your account’s API key. In Pagerduty, you can find your API key in Configuration > API Access.


    Domain Name: Enter your account’s sub-domain name. For example, if your account’s domain is https://sample-org.pagerduty.com, enter just ‘sample-org’ and not the full URL.

    Service ID: Enter 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

    image-pagerduty-1

    Once you have entered all the details, save the trigger and click 'Done'. This will take you back to canvas.

  2. Add and configure Cisco Spark Post New Message

    Add Cisco Spark ‘Post New Message’ activity to the canvas. Connect this activity with the ‘Start’ icon (which now displays ‘Pagerduty’ icon), and configure it.  

    On the configuration page, you will notice a few fields. Enter values in the fields as per the instructions given below.


    Authorize Cisco Spark: In order to use this activity, you need to first create an authorization for Cisco Spark. If you have already created an authorization, select it from the drop-down options. Else, select Add new’ to create one.


    Room ID: Select/specify the ID or name of the room to which you wish to post the message. Clicking the ‘Refresh’ icon will fetch the list of all rooms of your Cisco Spark account—based on the authorization selected—and display it in the drop-down list. You can then select the ID or name of the room.  Alternatively, you can enter the room ID or room name manually.


    Message: Specify the message that you wish to send to the room. In this case, we will enter a custom message, along with the output of Pagerduty trigger.


    image-pagerduty-2

    Once you have entered all the details, click on 'Done' to return to canvas. Connect this activity to ‘Stop’ and 'Save' the flow.

  3. Add and configure Slack activity

    Add Slack ‘Post Message to Channel’ activity to the canvas. Connect this activity with the ‘Start’ icon (which now displays ‘Pagerduty’ icon), and configure it.  

    On the configuration page, you will notice a few fields. Enter values in the fields as per the instructions given below.


    Slack Access Token: In order to use this activity, you need to first create an authorization for Cisco Spark. If you have already created an authorization, select it from the drop-down options. Else, select Add new’ to create one.


    Select Channel Type: Select the type of channel yuo wish to send the message to. Available options are ‘Public’, ‘Private Group’, and ‘Direct Message’


    Channel ID or Channel Name: Select/specify the ID or name of the channel to which you wish to post the message. Clicking the ‘Refresh’ icon will fetch the list of all channels of your Slack account—based on the authorization selected—and display it in the drop-down list. You can then select the ID or name of the channel. Alternatively, you can enter the channel ID or name manually.


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


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

    image-pagerduty-3

    Once you have entered all the details, click on 'Done' to return to canvas. Connect this activity to ‘Stop’ and 'Save' the flow. Now, whenever a new incident is triggered in the specified service in Pagerduty, this flow will send the incident details to the specified Cisco Spark room and Slack channel.