Create Create

yaml
type: "io.kestra.plugin.linear.issues.Create"

Opens issue in Linear

Examples

yaml
id: linear_issues_create
namespace: company.team

tasks:
  - id: create_issue
    type: io.kestra.plugin.linear.issues.Create
    token: your_api_token
    team: MyTeamName
    title: "Increased 5xx in Demo Service"
    description: "The number of 5xx has increased beyond the threshold for Demo service."
    labels:
      - Bug
      - Workflow

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_issue
    type: io.kestra.plugin.linear.issues.Create
    token: your_api_token
    team: MyTeamName
    title: Workflow failed
    description: "{{ execution.id }} has failed on {{ taskrun.startDate }}. See the link below for more details."
    labels:
      - Bug
      - Workflow

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

description

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

Issue description

labels

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

Names of labels

team

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

Team name

title

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

Issue title

token

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

Linear API token

Outputs

isSuccess

  • Type: boolean
  • Required:

Shows whether request was successful

issueId

  • Type: string
  • Required:

Issue id

Definitions

Was this page helpful?