AutomationFlowsDevOps › Create, update, and get an incident on PagerDuty

Create, update, and get an incident on PagerDuty

Create, update, and get an incident on PagerDuty. Uses manualTrigger, pagerDuty. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexity4 nodesPager Duty
DevOps Trigger: Event Nodes: 4 Complexity: ★★☆☆☆

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "158",
  "name": "Create, update, and get an incident on PagerDuty",
  "nodes": [
    {
      "name": "On clicking 'execute'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        240,
        260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "name": "PagerDuty",
      "type": "n8n-nodes-base.pagerDuty",
      "position": [
        440,
        260
      ],
      "parameters": {
        "email": "",
        "title": "Firewall on Fire",
        "serviceId": "",
        "additionalFields": {}
      },
      "credentials": {
        "pagerDutyApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "PagerDuty2",
      "type": "n8n-nodes-base.pagerDuty",
      "position": [
        840,
        260
      ],
      "parameters": {
        "operation": "get",
        "incidentId": "={{$node[\"PagerDuty1\"].json[\"id\"]}}"
      },
      "credentials": {
        "pagerDutyApi": "<your credential>"
      },
      "typeVersion": 1
    },
    {
      "name": "PagerDuty1",
      "type": "n8n-nodes-base.pagerDuty",
      "position": [
        640,
        260
      ],
      "parameters": {
        "email": "={{$node[\"PagerDuty\"].parameter[\"email\"]}}",
        "operation": "update",
        "incidentId": "={{$node[\"PagerDuty\"].json[\"id\"]}}",
        "updateFields": {
          "title": "Firewalls on Fire"
        }
      },
      "credentials": {
        "pagerDutyApi": "<your credential>"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {},
  "connections": {
    "PagerDuty": {
      "main": [
        [
          {
            "node": "PagerDuty1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PagerDuty1": {
      "main": [
        [
          {
            "node": "PagerDuty2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking 'execute'": {
      "main": [
        [
          {
            "node": "PagerDuty",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

About this workflow

Create, update, and get an incident on PagerDuty. Uses manualTrigger, pagerDuty. Event-driven trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More DevOps workflows → · Browse all categories →