Create Create

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

Create a jira ticket based on workflow execution status.

Examples

Create a jira ticket on a failed flow execution using basic authentication.

yaml
id: jira_flow
namespace: company.myteam

tasks:
  - id: create_issue
    type: io.kestra.plugin.jira.issues.Create
    baseUrl: your-domain.atlassian.net
    username: your_email@example.com
    password: "{{ secret('your_jira_api_token') }}"
    projectKey: myproject
    summary: "Workflow failed"
    description: "{{ execution.id }} has failed on {{ taskrun.startDate }} See the link below for more details"
    labels:
      - bug
      - workflow

Create a jira ticket on a failed flow execution using OAUTH2 access token authentication.

yaml
id: jira_flow
namespace: company.myteam

tasks:
  - id: create_issue
    type: io.kestra.plugin.jira.issues.Create
    baseUrl: your-domain.atlassian.net
    accessToken: "{{ secret('your_jira_access_token') }}"
    projectKey: myproject
    summary: "Workflow failed"
    description: "{{ execution.id }} has failed on {{ taskrun.startDate }} See the link below for more details"
    labels:
      - bug
      - workflow

Properties

baseUrl

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

Atlassian URL

projectKey

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️
  • Min length: 1

Atlassian project's key

accessToken

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

Atlassian OAuth access token

(Required for OAuth authorization)

description

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

Description of the ticket to be created

labels

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

Labels associated with opened ticket

password

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

Atlassian password or API token

(Required for basic & API token authorization)

payload

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

summary

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

Summary of the ticket

username

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

Atlassian Username

(Required for basic & API token authorization)

Outputs

Definitions

Was this page helpful?