For prerequisites, see PagerDuty incident actions.
Create a PagerDuty incident
The action identifier is pagerduty.incident.create.
Creates a new incident in PagerDuty with specified service, title, priority, and other optional attributes.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
token | String | Required. PagerDuty API token. |
|
type | String | Required. Must be |
|
title | String | Required. Incident title. |
|
service | Map | Required. Service reference object with |
|
from | String | Optional. Required for account tokens, optional for user tokens. The email address of the user making the request. |
|
priority | Map | Optional. Priority reference. |
|
urgency | String | Optional. Incident urgency. |
|
body | Map | Optional. Incident body with |
|
incidentKey | String | Optional. Deduplication key. |
|
assignments | List | Optional. List of assignee objects. |
|
incidentType | String | Optional. Incident type name. |
|
escalationPolicy | Map | Optional. Escalation policy reference. |
|
conferenceBridge | Map | Optional. Conference bridge details. |
|
selectors | List | Optional. JQ selectors to extract fields from the output. |
|
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
response | Object | The created incident object. Key fields: |
errorMessage | String | Error message on failure. |
The following example creates a new PagerDuty incident with a service, urgency, body, and escalation policy.
Workflow example |
|---|
|