An open API service indexing awesome lists of open source software.

https://github.com/edisedis777/jira-issues-extraction

This Python script extracts Jira issues using the Jira API, stores them in a SQLite database, and generates summary reports in Excel format.
https://github.com/edisedis777/jira-issues-extraction

api jira python sqlite

Last synced: 2 months ago
JSON representation

This Python script extracts Jira issues using the Jira API, stores them in a SQLite database, and generates summary reports in Excel format.

Awesome Lists containing this project

README

          

# Jira-Issues-Extraction
[![Visual Studio Code](https://custom-icon-badges.demolab.com/badge/Visual%20Studio%20Code-0078d7.svg?logo=vsc&logoColor=white)](#)
[![Python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=fff)](#)
![Jira](https://img.shields.io/badge/Jira-Project%20Management-0052CC?logo=jira&logoColor=white)
![SQLite](https://img.shields.io/badge/SQLite-Database-003B57?logo=sqlite&logoColor=white)
![Excel](https://img.shields.io/badge/Microsoft%20Excel-Spreadsheet-217346?logo=microsoft-excel&logoColor=white)
[![Markdown](https://img.shields.io/badge/Markdown-%23000000.svg?logo=markdown&logoColor=white)](#)

This Python script extracts Jira issues using the Jira API, stores them in a SQLite database, and generates summary reports in Excel format.

## Features
- Connects to Jira using API credentials
- Extracts issues using JQL (Jira Query Language)
- Stores issue data in SQLite database
- Generates an Excel summary report with issue type counts
- Creates a detailed Excel report with issue keys and summaries

## Requirements
Ensure you have the following Python libraries installed:

sh
pip install pandas sqlite3 xlsxwriter jira openpyxl

## Configuration
Update the following variables in the script to match your Jira environment:

python
EMAIL = 'name@domain.com' # Jira username
API_TOKEN = 'api_token' # Jira API token
SERVER = 'https://project.atlassian.net/' # Jira server URL
JQL = 'project = project_name' # JQL Query

## Usage
Run the script using Python:

sh
python script.py

## Output
- `jira_issues.db`: SQLite database storing the extracted Jira issues.
- `jira_summary.xlsx`: Excel file containing a summary of issues by type.
- `jira_report.xlsx`: Excel file listing issue keys and summaries.

## Error Handling
If the script fails to connect to Jira, it will print an error message and exit.

## License
Distributed under the GNU Affero General Public License v3.0 License. See `LICENSE` for more information.

[Back To Top ⬆️](#Jira-Issues-Extraction)