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: [email protected]
    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
    issuetype: Task

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
    issuetype: Task

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

issuetype

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

Issue type of the Jira ticket

Examples: Story, Task, Bug (default value is Task)

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:

Payload

summary

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

Summary of the ticket

username

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

Atlassian Username

(Required for basic & API token authorization)

Was this page helpful?