Manage workflows.
Workflows allow you to automate certain actions and behaviors based on specific triggers.
{- "workflows": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "continue_on_step_error": true,
- "delay": {
- "conditions_apply_over_delay": false,
- "for_seconds": 60
}, - "expressions": [
- {
- "else_branch": {
- "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}, - "label": "Team Slack channel",
- "operations": [
- {
- "branches": {
- "branches": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}
], - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}, - "filter": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
]
}, - "navigate": {
- "reference": "1235",
- "reference_label": "Teams"
}, - "operation_type": "navigate",
- "parse": {
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "source": "metadata.annotations[\"github.com/repo\"]"
}, - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}
], - "reference": "abc123",
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "root_reference": "incident.status"
}
], - "folder": "My folder 01",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "include_private_incidents": true,
- "name": "My workflow",
- "once_for": [
- {
- "array": false,
- "key": "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]",
- "label": "Incident -> Affected Team",
- "type": "IncidentSeverity"
}
], - "runs_from": "2021-08-17T13:28:57.801578Z",
- "runs_on_incident_modes": [
- "standard",
- "retrospective"
], - "runs_on_incidents": "newly_created",
- "shortform": "abc123",
- "state": "active",
- "steps": [
- {
- "label": "PagerDuty Escalate",
- "name": "pagerduty.escalate"
}
], - "trigger": {
- "label": "Incident Updated",
- "name": "incident.updated"
}, - "version": 3
}
]
}
Create a new workflow
Created response.
{- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "condition_groups": [
- {
- "conditions": [
- {
- "operation": "one_of",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": "incident.severity"
}
]
}
], - "continue_on_step_error": true,
- "delay": {
- "conditions_apply_over_delay": false,
- "for_seconds": 60
}, - "expressions": [
- {
- "else_branch": {
- "result": {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}, - "label": "Team Slack channel",
- "operations": [
- {
- "branches": {
- "branches": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": "one_of",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": "incident.severity"
}
]
}
], - "result": {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}
], - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}, - "filter": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": "one_of",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": "incident.severity"
}
]
}
]
}, - "navigate": {
- "reference": "catalog_attribute[\"01FCNDV6P870EA6S7TK1DSYD5H\"]"
}, - "operation_type": "navigate",
- "parse": {
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "source": "metadata.annotations[\"github.com/repo\"]"
}
}
], - "reference": "abc123",
- "root_reference": "incident.status"
}
], - "folder": "My folder 01",
- "include_private_incidents": true,
- "name": "My workflow",
- "once_for": [
- "incident.url"
], - "runs_on_incident_modes": [
- "standard",
- "retrospective"
], - "runs_on_incidents": "newly_created",
- "shortform": "abc123",
- "state": "active",
- "steps": [
- {
- "for_each": "abc123",
- "id": "abc123",
- "name": "pagerduty.escalate",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
]
}
], - "trigger": "incident.updated"
}
{- "management_meta": {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "managed_by": "dashboard",
}, - "workflow": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "continue_on_step_error": true,
- "delay": {
- "conditions_apply_over_delay": false,
- "for_seconds": 60
}, - "expressions": [
- {
- "else_branch": {
- "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}, - "label": "Team Slack channel",
- "operations": [
- {
- "branches": {
- "branches": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}
], - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}, - "filter": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
]
}, - "navigate": {
- "reference": "1235",
- "reference_label": "Teams"
}, - "operation_type": "navigate",
- "parse": {
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "source": "metadata.annotations[\"github.com/repo\"]"
}, - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}
], - "reference": "abc123",
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "root_reference": "incident.status"
}
], - "folder": "My folder 01",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "include_private_incidents": true,
- "name": "My workflow",
- "once_for": [
- {
- "array": false,
- "key": "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]",
- "label": "Incident -> Affected Team",
- "type": "IncidentSeverity"
}
], - "runs_from": "2021-08-17T13:28:57.801578Z",
- "runs_on_incident_modes": [
- "standard",
- "retrospective"
], - "runs_on_incidents": "newly_created",
- "shortform": "abc123",
- "state": "active",
- "steps": [
- {
- "for_each": "abc123",
- "id": "abc123",
- "label": "PagerDuty Escalate",
- "name": "pagerduty.escalate",
- "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
]
}
], - "trigger": {
- "label": "Incident Updated",
- "name": "incident.updated"
}, - "version": 3
}
}
{- "management_meta": {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "managed_by": "dashboard",
}, - "workflow": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "continue_on_step_error": true,
- "delay": {
- "conditions_apply_over_delay": false,
- "for_seconds": 60
}, - "expressions": [
- {
- "else_branch": {
- "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}, - "label": "Team Slack channel",
- "operations": [
- {
- "branches": {
- "branches": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}
], - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}, - "filter": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
]
}, - "navigate": {
- "reference": "1235",
- "reference_label": "Teams"
}, - "operation_type": "navigate",
- "parse": {
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "source": "metadata.annotations[\"github.com/repo\"]"
}, - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}
], - "reference": "abc123",
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "root_reference": "incident.status"
}
], - "folder": "My folder 01",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "include_private_incidents": true,
- "name": "My workflow",
- "once_for": [
- {
- "array": false,
- "key": "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]",
- "label": "Incident -> Affected Team",
- "type": "IncidentSeverity"
}
], - "runs_from": "2021-08-17T13:28:57.801578Z",
- "runs_on_incident_modes": [
- "standard",
- "retrospective"
], - "runs_on_incidents": "newly_created",
- "shortform": "abc123",
- "state": "active",
- "steps": [
- {
- "for_each": "abc123",
- "id": "abc123",
- "label": "PagerDuty Escalate",
- "name": "pagerduty.escalate",
- "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
]
}
], - "trigger": {
- "label": "Incident Updated",
- "name": "incident.updated"
}, - "version": 3
}
}
Updates a workflow
OK response.
{- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "condition_groups": [
- {
- "conditions": [
- {
- "operation": "one_of",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": "incident.severity"
}
]
}
], - "continue_on_step_error": true,
- "delay": {
- "conditions_apply_over_delay": false,
- "for_seconds": 60
}, - "expressions": [
- {
- "else_branch": {
- "result": {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}, - "label": "Team Slack channel",
- "operations": [
- {
- "branches": {
- "branches": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": "one_of",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": "incident.severity"
}
]
}
], - "result": {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}
], - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}, - "filter": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": "one_of",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": "incident.severity"
}
]
}
]
}, - "navigate": {
- "reference": "catalog_attribute[\"01FCNDV6P870EA6S7TK1DSYD5H\"]"
}, - "operation_type": "navigate",
- "parse": {
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "source": "metadata.annotations[\"github.com/repo\"]"
}
}
], - "reference": "abc123",
- "root_reference": "incident.status"
}
], - "folder": "My folder 01",
- "include_private_incidents": true,
- "name": "My workflow",
- "once_for": [
- "incident.url"
], - "runs_on_incident_modes": [
- "standard",
- "retrospective"
], - "runs_on_incidents": "newly_created",
- "shortform": "abc123",
- "state": "active",
- "steps": [
- {
- "for_each": "abc123",
- "id": "abc123",
- "name": "pagerduty.escalate",
- "param_bindings": [
- {
- "array_value": [
- {
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
]
}
]
}
{- "management_meta": {
- "annotations": {
- "incident.io/terraform/version": "3.0.0"
}, - "managed_by": "dashboard",
}, - "workflow": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "continue_on_step_error": true,
- "delay": {
- "conditions_apply_over_delay": false,
- "for_seconds": 60
}, - "expressions": [
- {
- "else_branch": {
- "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}, - "label": "Team Slack channel",
- "operations": [
- {
- "branches": {
- "branches": [
- {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
], - "result": {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
}
], - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}, - "filter": {
- "condition_groups": [
- {
- "conditions": [
- {
- "operation": {
- "label": "Lawrence Jones",
- "value": "01FCQSP07Z74QMMYPDDGQB9FTG"
}, - "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
], - "subject": {
- "label": "Incident Severity",
- "reference": "incident.severity"
}
}
]
}
]
}, - "navigate": {
- "reference": "1235",
- "reference_label": "Teams"
}, - "operation_type": "navigate",
- "parse": {
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "source": "metadata.annotations[\"github.com/repo\"]"
}, - "returns": {
- "array": true,
- "type": "IncidentStatus"
}
}
], - "reference": "abc123",
- "returns": {
- "array": true,
- "type": "IncidentStatus"
}, - "root_reference": "incident.status"
}
], - "folder": "My folder 01",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "include_private_incidents": true,
- "name": "My workflow",
- "once_for": [
- {
- "array": false,
- "key": "incident.custom_field[\"01FCNDV6P870EA6S7TK1DSYDG0\"]",
- "label": "Incident -> Affected Team",
- "type": "IncidentSeverity"
}
], - "runs_from": "2021-08-17T13:28:57.801578Z",
- "runs_on_incident_modes": [
- "standard",
- "retrospective"
], - "runs_on_incidents": "newly_created",
- "shortform": "abc123",
- "state": "active",
- "steps": [
- {
- "for_each": "abc123",
- "id": "abc123",
- "label": "PagerDuty Escalate",
- "name": "pagerduty.escalate",
- "param_bindings": [
- {
- "array_value": [
- {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
], - "value": {
- "label": "Lawrence Jones",
- "literal": "SEV123",
- "reference": "incident.severity"
}
}
]
}
], - "trigger": {
- "label": "Incident Updated",
- "name": "incident.updated"
}, - "version": 3
}
}