Create
Creates ticket in Hubspot.
yaml
type: "io.kestra.plugin.hubspot.tickets.Create"
yaml
id: hubspot_tickets_create
namespace: company.team
tasks:
- id: create_ticket
type: io.kestra.plugin.hubspot.tickets.Create
apiKey: my_api_key
subject: "Increased 5xx in Demo Service"
content: "The number of 5xx has increased beyond the threshold for Demo service."
stage: 3
priority: HIGH
Create an issue when a Kestra workflow in any namespace with company
as prefix fails.
yaml
id: create_ticket_on_failure
namespace: system
tasks:
- id: create_ticket
type: io.kestra.plugin.hubspot.tickets.Create
apiKey: my_api_key
subject: Workflow failed
content: "{{ execution.id }} has failed on {{ taskrun.startDate }}"
stage: 3
priority: HIGH
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
Dynamic
YES
Hubspot API key
Dynamic
YES
Ticket body
Dynamic
YES
Hubspot OAuth token
Dynamic
YES
Ticket pipeline
Dynamic
YES
Possible Values
LOW
MEDIUM
HIGH
Ticket priority
(Optional) Available values: LOW: Low priority MEDIUM: Medium priority HIGH: High priority
Dynamic
YES
Default
1
Ticket pipeline stage
Dynamic
YES
Ticket subject
Ticket id