Skip to main content

RAG-based JIRA ticket generator using vector similarity search

Project description

JiraGen: Automated JIRA Issue Generation

License Python 3.10+ PRs Welcome Platform: Local

🚀 Overview

Jiragen is a CLI designed to automate the creation of JIRA Issues through the use of Large Language Models (LLMs). It is fully integrated with JIRA API and your Local codebase accelerating jira issue creation and enabling developers to focus on other aspects of their projects. Full documentation is available here.


📖 Table of Contents

🌟 Key Features

  • 🧠 Local LLM Integration: Leverages Ollama (via LiteLLM) for local text generation
  • 🔍 Context-Aware Issues: Smart codebase analysis with vector store integration
  • 🎯 Gitignore Support: Respects .gitignore patterns when indexing codebase
  • Customizable Templates: Flexible issue templates for different needs
  • 🔧 Smart Metadata Extraction: Automatic extraction of issue type, priority, and labels
  • ⚙️ Interactive Workflow: Review and modify content before uploading

⚡ Quick Start

Installation

Install JiraGen and its dependencies:

pip install jiragen

Install & run Ollama to use your local LLM:

curl https://ollama.ai/install.sh | sh
ollama pull phi4  # Replace with your preferred model

or export your OpenAI API key:

export OPENAI_API_KEY="YOUR_API_KEY"

Basic Setup

# Initialize configuration
jiragen init

# Index your codebase (respects .gitignore)
jiragen add .

# Generate your first issue
jiragen generate "Implement user authentication"

🎯 Usage Examples

Codebase Indexing

# Add all files (respects .gitignore)
jiragen add .

# Add specific files or directories
jiragen add src/main.py

# Remove files
jiragen rm src/deprecated/

Issue Generation

# Basic generation
jiragen generate "Add dark mode support"

# With custom template and model
jiragen generate "API rate limiting" \
  --template templates/feature.md \
  --model ollama/codellama

# Generate and upload to JIRA
jiragen generate "Fix memory leak" --upload --yes

# Interactive editing
jiragen generate "OAuth integration" --editor

Status and Management

# View indexed files
jiragen status
jiragen status --compact
jiragen status --depth 2

# Fetch JIRA data
jiragen fetch --types epics tickets

# Restart vector store
jiragen restart

⚙️ Configuration Options

JiraGen can be configured through:

  • Command-line arguments
  • Configuration file (~/.jiragen/config.ini)
  • Environment variables
# Python API configuration
LLMConfig(
    model="llama2",  # Ollama model to use
    api_base="http://localhost:11434",  # Ollama endpoint
    max_tokens=2000,
    temperature=0.7,
    top_p=0.95,
)

📝 Template Customization

Create templates to match your organization's needs:

# {title}

## Description
{description}

## Acceptance Criteria
{acceptance_criteria}

## Technical Implementation
{implementation_details}

## Testing Strategy
- Unit Tests
- Integration Tests
- E2E Tests

🤝 Contributing

We ❤️ contributions! To contribute:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request with a detailed description

For more details, refer to our CONTRIBUTING.md.

📜 License

JiraGen is released under the MIT License.

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

jiragen-0.4.0.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

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

jiragen-0.4.0-py3-none-any.whl (61.2 kB view details)

Uploaded Python 3

File details

Details for the file jiragen-0.4.0.tar.gz.

File metadata

  • Download URL: jiragen-0.4.0.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for jiragen-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2280981f3642a08d81b3684ab216ba49c8db1023cad6657111138e19d6d73a28
MD5 efaecdb488045bc3ce8705aec7e7c45e
BLAKE2b-256 b6aa267c6d7f730b2303b5cd9b0906f9f28ab04ee76fddefb8252867e61e7573

See more details on using hashes here.

Provenance

The following attestation bundles were made for jiragen-0.4.0.tar.gz:

Publisher: releases.yml on Abdellah-Laassairi/jiragen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jiragen-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: jiragen-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 61.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for jiragen-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41b78abaf4f877b539bcfc54086332bb223ed58125fa41b50e8f47038fc339a6
MD5 75a001da849617d6e2b5dc574657c801
BLAKE2b-256 f2f738e9ab4c219fcee18e0e6fa9095dac5764e8dc39d0878a03356597684b3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for jiragen-0.4.0-py3-none-any.whl:

Publisher: releases.yml on Abdellah-Laassairi/jiragen

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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