
Zendesk Create
CertifiedCreate a Zendesk ticket
Zendesk 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 a Kestra workflow in any namespace with company as prefix fails.
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
conditions:
- type: io.kestra.plugin.core.condition.ExecutionStatus
in:
- FAILED
- WARNING
- type: io.kestra.plugin.core.condition.ExecutionNamespace
namespace: company
comparison: PREFIX
Properties
domain *Requiredstring
Zendesk domain URL
Base domain of the Zendesk instance; https:// is added if missing and trailing slash is removed.
assigneeId 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.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
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 URL