Skip to main content

Jira Destination

Create or update Jira issues from source rows via the Jira Cloud REST API v3. Create-by-default; updates when the row carries a known issue id.

YAML Example​

destination:
type: jira
base_url_env: JIRA_BASE_URL # https://myorg.atlassian.net
email_env: JIRA_EMAIL
token_env: JIRA_API_TOKEN
project_key: "OPS"
issue_type: "Task"
summary_template: "Sync failure: {{ row.sync_name }}"
description_template: "Run {{ row.run_id }} failed with: {{ row.error }}"

Configuration​

FieldTypeDefaultDescription
type"jira"—Required
base_url_envstring—Env var → site URL (e.g. https://myorg.atlassian.net)
email_envstring—Env var → Jira account email
token_envstring—Env var → Jira API token
project_keystring—Target project key; supports Jinja2 (e.g. {{ row.team }})
issue_typestring"Task"Issue type; supports Jinja2
summary_templatestring—Jinja2 template → issue summary
description_templatestring—Jinja2 template → issue description
issue_id_fieldstring"issue_id"Row key that, when present, switches to update mode
retryobject | nullnullPer-destination retry override

Authentication​

Jira Cloud uses HTTP Basic auth with your account email as the username and an API token as the password. Create a token at id.atlassian.com → API tokens:

export JIRA_BASE_URL="https://myorg.atlassian.net"
export JIRA_EMAIL="you@example.com"
export JIRA_API_TOKEN="your-api-token"

Create vs. update​

  • Create (default): if the source row has no issue_id_field value, drt POSTs to /rest/api/3/issue to create a new issue.
  • Update: if the row carries a value at issue_id_field (default issue_id), drt PUTs to /rest/api/3/issue/<id> to update that issue instead.

This lets a single sync both open new issues and keep existing ones in step — include the Jira issue id in your source model for rows that map to already-created issues.

Common Patterns​

Route to a project per row:

project_key: "{{ row.team_project_key }}"

Bug type with a templated summary:

issue_type: "Bug"
summary_template: "[{{ row.severity }}] {{ row.title }}"

Notes​

  • (core) — no extra install required.
  • description_template renders into the issue description. For Jira Cloud's Atlassian Document Format (ADF), supply the ADF JSON in the template if you need rich formatting; plain text is accepted as-is.
  • The API token's user must have create/edit permission on the target project.
  • Per-row failures (missing required field, permission denied) land in result.row_errors; on_error: skip continues the batch.

References​