Skip to main content

Create Jira tickets via YAML

Project description

Avatar

Build Status Security Status Dependencies Status Published Version

JiraBatch

Jira Batch is a batch Jira issues creator.

Define the issues in

Installation

pip3 install jirabatch

Usage

Create a configuration file, e.g. jirabatch.yaml, and then create an issues file, e.g. issues.yaml .

Run jirabatch with specified config file and issues file:

jirabatch --conf-file jirabatch.yaml --issues-file issues.yaml

Show help guide:

jirabatch --help

Configuration

These are the configuration properties that you can use with jirabatch CLI. Some example configuration files are available on examples folder.

Jira Batch configuration properties:

Property Type Required Description Example
url String Yes The base URL of the Jira server https://someorg.atlassian.net
user String Yes The Jira username or email address someuser@example.com
api_token String Yes* The Jira API token used for authentication. Takes precedence over password sometoken12345
password String Yes* The Jira account password. Used as fallback when api_token is not set somepassword

Issues configuration properties:

Property Type Required Description Example
defaults Object No Default field values merged into every entry in issues[] { project: "KAN", issuetype: "Task" }
issues[] Array Yes List of Jira issues to create [{ summary: "Issue summary" }]
issues[].project String Yes* Jira project key ENG
issues[].issuetype String Yes* Jira issue type name Task
issues[].summary String Yes* Jira issue summary Rotate SSH key
issues[].description String No Jira issue description Rotate SSH key before expiry
issues[].reporter String No Reporter account ID 5b10a2844c20165700ede21g
issues[].assignee String No Assignee account ID 5b10ac8d82e05b22cc7d4ef5
issues[].priority String No Priority name High
issues[].labels[] Array[String] No Labels to assign ["infra", "security"]
issues[].components[] Array[String] No Component names ["Cloud", "Backend"]
issues[].versions[] Array[String] No Affects version names ["2026.1"]
issues[].fixVersions[] Array[String] No Fix version names ["2026.2"]
issues[].environment String No Environment field value Production AWS us-east-1
issues[].duedate String No Due date (sent as string) 2026-04-01
issues[].timetracking Object No Jira timetracking object { originalEstimate: "3d", remainingEstimate: "2d" }
issues[].security String No Security level name Internal
issues[].parent String No Parent issue key KAN-100
issues[].epic String No Epic issue key (normalized to parent) KAN-10
issues[].customFields Object No Map of Jira custom field IDs to values { customfield_10100: "Platform Team" }
issues[].subtasks[] Array[Object] No Subtasks created after parent issue succeeds [{ summary: "Subtask 1" }]
issues[].subtasks[].summary String Yes Subtask summary Update cert in service A
issues[].subtasks[].issuetype String No Subtask issue type (defaults to Subtask) Sub-task

FAQ

How to find reporter and assignee values?

reporter and assignee must be Jira accountId values, not display names or email addresses.

Visit https://<id>.atlassian.net/rest/api/3/user/search?query=<user_name_or_email> and you will receive a JSON response:

[
    {
        "accountId": "5b10a2844c20165700ede21g",
        "displayName": "Some User",
        ...
    }
]

Copy the accountId value and use it in your issues file:

issues:
    - summary: Some Jira issue
      reporter: "5b10a2844c20165700ede21g"
      assignee: "5b10a2844c20165700ede21g"

Colophon

Developer's Guide

Build reports:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jirabatch-0.10.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jirabatch-0.10.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

Details for the file jirabatch-0.10.0.tar.gz.

File metadata

  • Download URL: jirabatch-0.10.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.5 Linux/6.17.0-1015-azure

File hashes

Hashes for jirabatch-0.10.0.tar.gz
Algorithm Hash digest
SHA256 124b940f82c40fc0e4a762936368aa8cfb8f29ea85151bf9b3379850618050bd
MD5 1448348dd941725439efff6200676a6b
BLAKE2b-256 a3fb3abaf13946cad2c4ed013fd57d0537bac108b37b84b8fc631433a69fce93

See more details on using hashes here.

File details

Details for the file jirabatch-0.10.0-py3-none-any.whl.

File metadata

  • Download URL: jirabatch-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.14.5 Linux/6.17.0-1015-azure

File hashes

Hashes for jirabatch-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ec68e4954f76bf7f96e9506a3fa5871a159b3bc5074cf6e75bf7d487d439e4b9
MD5 efbc2be3432afca8e1ec8785cfeaa39f
BLAKE2b-256 9e5f42e442df8aac628613ef3954602bf58b062f15849fddc412d8c903678f56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page