Export Jira issues to Markdown files
Project description
jira2md
Export Jira issues to Markdown files because using Jira (or any other Atlassian product for that matter) sucks. Works as a CLI tool and as a Python library.
Installation
uv sync
Configuration
Copy config.yaml.example to config.yaml and adjust it to your Jira instance:
jira:
url: https://your-jira-instance.atlassian.net
token: your-personal-access-token
fields:
story_points: customfield_10006
sprint: customfield_10000
acceptance_criteria: customfield_10035
output:
directory: ./export
filename_pattern: "{key}"
fields:
- summary
- status
- assignee
- priority
- story_points
- sprint
- acceptance_criteria
- description
The token can also be set via the JIRA2MD_TOKEN environment variable instead of putting it in the file.
Field mappings
Built-in Jira fields (summary, status, description, assignee, priority, etc.) are resolved automatically. Custom fields need to be mapped under jira.fields using a logical name and the Jira field ID.
The output.fields list controls which fields appear in the exported Markdown and in what order. Short values are rendered in a metadata table, while longer text fields like description or acceptance criteria get their own sections.
Finding custom field IDs
If you don't know the field IDs for your Jira instance:
jira2md discover-fields
jira2md discover-fields --search "story point"
CLI Usage
Export issues matching a JQL query:
jira2md export --jql "project = PROJ AND sprint in openSprints()"
Export a single issue:
jira2md export --key PROJ-123
Override the output directory:
jira2md export --jql "project = PROJ" --output-dir ./docs
Use a specific config file:
jira2md -c path/to/config.yaml export --jql "project = PROJ"
Library Usage
from jira2md import load_config, connect, fetch_issues, export_issues
config = load_config("config.yaml")
jira = connect(config.jira)
issues = fetch_issues(jira, "project = PROJ", config.jira)
paths = export_issues(issues, config.output)
You can also render Markdown without writing files:
from jira2md import render_issue
markdown = render_issue(issue, config.output)
print(markdown)
Releasing
./scripts/release.sh patch # 0.1.0 → 0.1.1
./scripts/release.sh minor # 0.1.0 → 0.2.0
./scripts/release.sh major # 0.1.0 → 1.0.0
This bumps the version in pyproject.toml, commits, tags, and pushes. The push triggers a GitHub Actions workflow that publishes the package to PyPI.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jira2md-0.2.1.tar.gz.
File metadata
- Download URL: jira2md-0.2.1.tar.gz
- Upload date:
- Size: 37.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc07d1d64993d3c032bb81d5c2fff47d1fa7614bb3108be73207851480db930c
|
|
| MD5 |
b007e2b7269a4c17dbc5c65dda59f34b
|
|
| BLAKE2b-256 |
d1ec380e1c7520f84ca11774459dbaa678c1cd971d83e0bbbdd7a292504a7335
|
Provenance
The following attestation bundles were made for jira2md-0.2.1.tar.gz:
Publisher:
release.yml on splieth/jira2md
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jira2md-0.2.1.tar.gz -
Subject digest:
cc07d1d64993d3c032bb81d5c2fff47d1fa7614bb3108be73207851480db930c - Sigstore transparency entry: 1188701977
- Sigstore integration time:
-
Permalink:
splieth/jira2md@c7281c5a6d0f98569fe0f9b6b55dc556a026d356 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/splieth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c7281c5a6d0f98569fe0f9b6b55dc556a026d356 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jira2md-0.2.1-py3-none-any.whl.
File metadata
- Download URL: jira2md-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6619b550565c8b20cc05cd24cf9f6e3632357186673e0d432476cd3c78cd89ef
|
|
| MD5 |
9e5c68a62d710d27266029531acde45a
|
|
| BLAKE2b-256 |
41659fe20dc34fd4322a24b15fa380379d6313869c2f8b1477ffe9b4b0cb6f9e
|
Provenance
The following attestation bundles were made for jira2md-0.2.1-py3-none-any.whl:
Publisher:
release.yml on splieth/jira2md
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jira2md-0.2.1-py3-none-any.whl -
Subject digest:
6619b550565c8b20cc05cd24cf9f6e3632357186673e0d432476cd3c78cd89ef - Sigstore transparency entry: 1188702001
- Sigstore integration time:
-
Permalink:
splieth/jira2md@c7281c5a6d0f98569fe0f9b6b55dc556a026d356 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/splieth
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c7281c5a6d0f98569fe0f9b6b55dc556a026d356 -
Trigger Event:
push
-
Statement type: