Skip to main content

🛠️ jira-creator

Build Status Python License Last Commit

A powerful command-line tool for creating JIRA issues (stories, bugs, epics, spikes, tasks) quickly using standardized templates, and optional AI-enhanced descriptions.


🚀 Quick Start (Under 30 Seconds)

1️⃣ Create your config file and enable autocomplete

First, we set up a configuration file jira.sh with our JIRA credentials, AI settings and project information.

mkdir -p ~/.bashrc.d
cat <<EOF > ~/.bashrc.d/jira.sh
export JPAT="your_jira_personal_access_token"
export AI_PROVIDER=openai
export AI_API_KEY=sk-...
export AI_MODEL="gpt-4o-mini"
export JIRA_URL="https://issues.redhat.com"
export PROJECT_KEY="AAP"
export AFFECTS_VERSION="aa-latest"
export COMPONENT_NAME="analytics-hcc-service"
export PRIORITY="Normal"
export JIRA_BOARD_ID=21125
export JIRA_EPIC_FIELD="customfield_12311140"
export JIRA_ACCEPTANCE_CRITERIA_FIELD="customfield_12315940"
export JIRA_BLOCKED_FIELD="customfield_12316543"
export JIRA_BLOCKED_REASON_FIELD="customfield_12316544"
export JIRA_STORY_POINTS_FIELD="customfield_12310243"
export JIRA_SPRINT_FIELD="customfield_12310940"

# Enable autocomplete
eval "$(/usr/local/bin/rh-issue --_completion | sed 's/rh_jira.py/rh-issue/')"
EOF

source ~/.bashrc.d/jira.sh

Next, we make the tool executable and link it to a convenient location in our PATH.

chmod +x jira_creator/rh-issue-wrapper.sh
sudo ln -s $(pwd)/jira_creator/rh-issue-wrapper.sh /usr/local/bin/rh-issue

3️⃣ Run it

Finally, let's test our setup by creating a story in JIRA.

rh-issue create story "Improve onboarding experience"

📘 Usage & Commands

Here are some common commands you can use with rh-issue.

🆕 Create Issues

You can create various types of issues including bug, story, epic, and spike.

rh-issue create bug "Fix login crash"
rh-issue create story "Refactor onboarding flow"
rh-issue create epic "Unify frontend UI" --edit
rh-issue create spike "Evaluate GraphQL support" --dry-run

Use --edit to open the issue in your $EDITOR, and --dry-run to print the payload without creating the issue.

🔄 Change Issue Type

To change the type of an existing issue use:

rh-issue change AAP-12345 story

🚚 Migrate Issue

To migrate an issue to a different project or issue type:

rh-issue migrate AAP-54321 story

✏️ Edit Description

To edit the description of an existing issue, use:

rh-issue edit AAP-98765
rh-issue edit AAP-98765 --no-ai

Use --no-ai to disable the AI enhancements while editing.

🧍 Unassign Issue

To unassign a user from an issue, use:

rh-issue unassign AAP-12345

📋 List Issues

List all issues or filter by project, component, or user:

rh-issue list
rh-issue list --project AAP --component api --user jdoe

🏷️ Set Priority

To change the priority of an issue, use:

rh-issue set-priority AAP-123 High

📅 Sprint Management

Manage sprint assignments for an issue:

rh-issue set-sprint AAP-456 1234
rh-issue remove-sprint AAP-456
rh-issue add-sprint AAP-456 "Sprint 33"

🚦 Set Status

Change the status of an issue:

rh-issue set-status AAP-123 "In Progress"

🤖 AI Provider Support

You can use various AI providers by setting AI_PROVIDER. You can manage different AI models using ollama:

mkdir -vp ~/.ollama-models
docker run -d -v ~/.ollama-models:/root/.ollama -p 11434:11434 ollama/ollama

For each AI provider, set AI_PROVIDER and other environment variables as described below:

✅ OpenAI

export AI_PROVIDER=openai
export AI_API_KEY=sk-...
export AI_MODEL=gpt-4  # Optional

🦙 LLama3

docker compose exec ollama ollama pull LLama3
export AI_PROVIDER=LLama3
export AI_URL=http://localhost:11434/api/generate
export AI_MODEL=LLama3

🧠 DeepSeek

docker compose exec ollama ollama pull deepseek-r1:7b
export AI_PROVIDER=deepseek
export AI_URL=http://localhost:11434/api/generate
export AI_MODEL=http://localhost:11434/api/generate

🖥 GPT4All

pip install gpt4all
export AI_PROVIDER=gpt4all

🧪 InstructLab

export AI_PROVIDER=instructlab
export AI_URL=http://localhost:11434/api/generate
export AI_MODEL=instructlab

🧠 BART

export AI_PROVIDER=bart
export AI_URL=http://localhost:8000/bart

🪫 Noop

export AI_PROVIDER=noop

🔧 Dev Setup

Install development dependencies:

pipenv install --dev

Testing & Linting

To test, lint, and format the code:

make test
make lint
make format  # autofix formatting

⚙️ How It Works

  • The tool loads field definitions from .tmpl files under templates/
  • It uses TemplateLoader to generate Markdown descriptions
  • It applies AI cleanup for readability and structure
  • The tool sends the issue details to JIRA via REST API (or performs a dry-run if requested)

📜 License

This project is licensed under the Apache License.

Metadata

Release files for jira-creator 0.0.35

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jira-creator 0.0.35
File Size Uploaded Provenance Actions
jira_creator-0.0.35.tar.gz 64.1 kB Without provenance Details for jira_creator-0.0.35.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jira-creator 0.0.35
File Interpreter ABI Platform Actions
jira_creator-0.0.35-py3-none-any.whl Python 3 none any Details for jira_creator-0.0.35-py3-none-any.whl

Total release size: 187.4 kB

Release files / jira_creator-0.0.35.tar.gz

Download URL jira_creator-0.0.35.tar.gz
Size 64.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d39af0c6e288059f111828fc7eb7db37f6d963edaf11e183a98cb781026f9d2a
BLAKE2b-256 checksum
How to use checksums
71eee70e45bbb7cf53726bcc71024e1643ce95d69792f2cc8c8dc91cf60a90a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / jira_creator-0.0.35-py3-none-any.whl

Download URL jira_creator-0.0.35-py3-none-any.whl
Size 123.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c94752168f1e3b265cd19021f16c9e23bc559c72edda496177985fc3424dcdc
BLAKE2b-256 checksum
How to use checksums
5b659bbaba62d401e39d911e7b867f1d90bb79afa64215e0fc75a7b7bd9a0344
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for jira-creator 0.0.35

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.35 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page