Export Jira Cloud issues to Markdown with attachments
Project description
Jarkdown - Export Jira Issues to Markdown
A command-line tool that exports Jira Cloud issues into clean, portable Markdown files, optimized for AI-powered development workflows.
Jarkdown is designed to bridge the gap between Jira and your local environment. It makes it easy to archive tickets, share them with others, or provide deep, accurate context to AI coding assistants, ensuring they understand the full "vibe" of a task.
Primary Use Case: Context for AI Coding Assistants ("Vibecoding")
A primary use case for Jarkdown is to provide rich, accurate context to AI-powered coding assistants (like GitHub Copilot, Gemini, Claude, etc.).
The main challenge when using AI for a development task is its lack of access to the context inside a Jira ticket—the requirements, discussions, attachments, and metadata. Jarkdown solves this by exporting the entire issue into a clean, self-contained Markdown file with all attachments downloaded locally and referenced.
This file can be easily included in a prompt, giving the assistant all the necessary information to generate highly relevant and accurate code. This workflow, sometimes referred to as "vibecoding," ensures the AI understands the complete scope and nuance of the task, leading to significantly better results and faster development cycles.
Documentation
Full documentation is available at jarkdown.readthedocs.io, including:
- Getting Started for Beginners - Step-by-step guide for new users
- AI-Powered Development - A guide on the "vibecoding" workflow
- Installation Guide
- Usage Guide
- Configuration
- Contributing
Key Features
- AI-Ready Exports: Generates clean, portable Markdown perfect for AI prompts.
- Complete Context: Fetches issue descriptions, metadata, and downloads all attachments locally.
- Preserves Formatting: Converts Jira's HTML to GitHub-flavored Markdown, keeping headings, lists, code blocks, and tables intact.
- Embeds Local Links: Automatically references downloaded attachments with local links in the Markdown file.
- Simple and Fast: A command-line tool that is easy to script and integrate into your workflow.
Installation
Quick Install (Recommended)
Install directly from PyPI with a single command:
pip install jarkdown
Configuration
After installation, you need to set up your Jira credentials. Create a file named .env in the directory where you'll run the jarkdown command:
- Create the
.envfile with the following content:
JIRA_DOMAIN=your-company.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=your-api-token-here
- Replace the values with your actual Jira information:
JIRA_DOMAIN: Your Atlassian domain (e.g., company.atlassian.net)JIRA_EMAIL: The email address you use to log into JiraJIRA_API_TOKEN: Your personal API token (see below)
Getting Your Jira API Token
- Go to https://id.atlassian.com/manage-profile/security/api-tokens
- Click "Create API token"
- Give it a name (e.g., "jarkdown")
- Copy the token and paste it into your
.envfile
For Developers (Installing from Source)
If you want to contribute to the project or need the latest development version:
- Clone the repository:
git clone https://github.com/chrisbyboston/jarkdown.git
cd jarkdown
- Create a virtual environment and install dependencies:
On macOS/Linux:
python3 -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
On Windows:
python -m venv venv
venv\Scripts\activate
pip install -e ".[dev]"
- Set up your
.envfile as described above
Usage
Basic usage:
jarkdown ISSUE-KEY
Examples:
# Download an issue to the current directory
jarkdown PROJ-123
# Download to a specific directory
jarkdown PROJ-123 --output ~/Documents/jira-exports
# Enable verbose logging
jarkdown PROJ-123 --verbose
# Show version
jarkdown --version
Output Structure
The tool creates a directory named after the issue key containing:
- A markdown file with the issue content
- All attachments downloaded from the issue
Example:
PROJ-123/
├── PROJ-123.md # Issue content in markdown
├── diagram.png # Downloaded attachments
├── report.pdf
└── ...
Markdown Format
The generated markdown includes:
- Issue title with link to Jira
- Metadata (Type, Status, Priority, Assignee, Reporter)
- Description with preserved formatting
- Attachments section with all files
Images are embedded inline, other files are linked.
Requirements
- Python 3.8+
- Jira Cloud instance
- Jira API token with read permissions
Dependencies
requests- HTTP client for API callsmarkdownify- HTML to Markdown conversionpython-dotenv- Environment variable management
Limitations
- Currently supports single issue export only
- Comments are not included (planned for future)
- Requires Jira Cloud (not Server/Data Center)
Future Enhancements
- Export multiple issues with JQL queries
- Include issue comments
- Support for bulk export
- Hierarchical export (epics with stories)
- Better ADF format handling
Contributing
We welcome contributions! Here's how to get started:
Development Setup
- Fork and clone the repository:
git clone https://github.com/YOUR-USERNAME/jarkdown.git
cd jarkdown
- Create a virtual environment and install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
- Install pre-commit hooks:
pre-commit install
Making Changes
- Create a feature branch:
git checkout -b feature/your-feature-name
- Make your changes and ensure tests pass:
pytest
pytest --cov=src/jarkdown --cov-report=term-missing
- Commit your changes (pre-commit hooks will run automatically):
git add .
git commit -m "feat: describe your change"
- Push and create a pull request:
git push origin feature/your-feature-name
Then open a pull request on GitHub.
Code Style
- We use
rufffor linting and formatting - Pre-commit hooks ensure code quality
- Write clear, descriptive commit messages
- Add tests for new functionality
- Update documentation as needed
Testing
Run the test suite:
# Run all tests
pytest
# Run with coverage
pytest --cov=src/jarkdown --cov-report=term-missing
# Run specific test file
pytest tests/test_cli.py
Reporting Issues
Please use the GitHub issue tracker to report bugs or request features.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 jarkdown-0.1.0.tar.gz.
File metadata
- Download URL: jarkdown-0.1.0.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bc996fd978f58a20a0aa9f8c87e36d5e9699fb9a3cf7895831c58af53a44dfe
|
|
| MD5 |
15fd3adefb81198f47579e1d34d278a9
|
|
| BLAKE2b-256 |
68ffc38a7a14e1737dffaac32206f717e2df4be534e0bb7e079fa5e6902ee072
|
File details
Details for the file jarkdown-0.1.0-py3-none-any.whl.
File metadata
- Download URL: jarkdown-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cda00c163a84d3b42e92e89fda710c26da1fec5513d834bb2c62b61abbf18028
|
|
| MD5 |
19b33b160189547e3e7dc0e412a1edb0
|
|
| BLAKE2b-256 |
605914489a3e5c0e903bd9af0eb082a2b27aec4e75b35bdfd937c8f9f7f54415
|