Create Create

yaml
type: "io.kestra.plugin.hubspot.tickets.Create"

Creates ticket in Hubspot.

Examples

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.ExecutionStatusCondition
        in:
          - FAILED
          - WARNING
      - type: io.kestra.plugin.core.condition.ExecutionNamespaceCondition
        namespace: company
        comparison: PREFIX

Properties

apiKey

  • Type: string
  • Dynamic: ✔️
  • Required:

Hubspot API key

content

  • Type: string
  • Dynamic: ✔️
  • Required:

Ticket body

oauthToken

  • Type: string
  • Dynamic: ✔️
  • Required:

Hubspot OAuth token

pipeline

  • Type: integer
  • Dynamic:
  • Required:

Ticket pipeline

priority

  • Type: string
  • Dynamic:
  • Required:
  • Possible Values:
    • LOW
    • MEDIUM
    • HIGH

Ticket priority

(Optional) Available values: LOW: Low priority MEDIUM: Medium priority HIGH: High priority

stage

  • Type: integer
  • Dynamic:
  • Required:
  • Default: 1

Ticket pipeline stage

subject

  • Type: string
  • Dynamic: ✔️
  • Required:

Ticket subject

Outputs

id

  • Type: integer
  • Required:

Ticket id

Definitions

Was this page helpful?