
Zendesk Tickets Create
CertifiedCreate a Zendesk ticket
Zendesk Tickets Create
Create a Zendesk ticket
Calls /api/v2/tickets.json with basic auth (username + API token) or OAuth bearer. Renders templated fields with the current RunContext. Fails if Zendesk does not return HTTP 201.
type: io.kestra.plugin.zendesk.tickets.CreateExamples
Create Zendesk ticket using username and token.
id: zendesk_flow
namespace: company.team
tasks:
- id: create_ticket
type: io.kestra.plugin.zendesk.tickets.Create
domain: mycompany.zendesk.com
username: my_email@example.com
token: "{{ secret('ZENDESK_TOKEN') }}"
subject: "Increased 5xx in Demo Service"
description: |
"The number of 5xx has increased beyond the threshold for Demo service."
priority: NORMAL
ticketType: INCIDENT
assigneeId: 1
tags:
- bug
- workflow
Create Zendesk ticket using OAuth token.
id: zendesk_flow
namespace: company.team
tasks:
- id: create_ticket
type: io.kestra.plugin.zendesk.tickets.Create
domain: mycompany.zendesk.com
oauthToken: "{{ secret('ZENDESK_OAUTH_TOKEN') }}"
subject: "Increased 5xx in Demo Service"
description: |
"The number of 5xx has increased beyond the threshold for Demo service."
priority: NORMAL
ticketType: INCIDENT
assigneeId: 1
tags:
- bug
- workflow
Create a ticket when any Kestra workflow fails or ends with a warning.
id: create_ticket_on_failure
namespace: company.team
tasks:
- id: create_ticket
type: io.kestra.plugin.zendesk.tickets.Create
domain: mycompany.zendesk.com
oauthToken: "{{ secret('ZENDESK_OAUTH_TOKEN') }}"
subject: Workflow failed
description: |
"{{ execution.id }} has failed on {{ taskrun.startDate }}.
See the link below for more details."
priority: NORMAL
ticketType: INCIDENT
assigneeId: 1
tags:
- bug
- workflow
triggers:
- id: on_failure
type: io.kestra.plugin.core.trigger.Flow
states:
- FAILED
- WARNING
Properties
domain *string
Zendesk domain URL
Base domain of the Zendesk instance; https:// is added if missing and trailing slash is removed.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150assigneeId integerstring
Assignee ID
Numeric Zendesk assignee ID; omit to leave unassigned.
description string
Ticket description
Body of the ticket; templated via RunContext and supports multiline text.
oauthToken string
Zendesk OAuth token
Bearer token alternative to username/token; send as Authorization: Bearer.
priority string
URGENTHIGHNORMALLOWPriority
Optional Zendesk priority. Allowed values: URGENT, HIGH, NORMAL, LOW. Leave blank to use Zendesk's default.
subject string
Ticket subject line
Short summary shown in Zendesk; rendered from the RunContext.
ticketType string
PROBLEMINCIDENTQUESTIONTASKTicket type
Optional Zendesk type. Allowed values: PROBLEM, INCIDENT, QUESTION, TASK.
token string
Zendesk API token
API token for basic auth; pair it with username.
username string
Zendesk username
Account email used with an API token for basic authentication.
Outputs
id integer
Ticket ID
url string
Ticket API URL
webUrl string
Ticket URL
Link that opens the ticket in the Zendesk agent interface.