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

https://github.com/navilg/jira-api-python

Some commonly needed Jira operation using python
https://github.com/navilg/jira-api-python

api jira python python3 worklogs

Last synced: 4 months ago
JSON representation

Some commonly needed Jira operation using python

Awesome Lists containing this project

README

          

# Jira API Python

## Requirements

1. Python >= 3.11
2. Windows powershell or Linux shell terminal
3. Jira URL

## How to use it ?

### Generate Personal Access Token

1. Login to Jira with your account

2. Click on your Avatar from top right corner --> Click on profile

3. Click on Personal Access Tokens

4. Create Token

5. COpy the token and keep it safe and secure

### Install modules and dependencies

```bash
# To create and activate virtual environment
# virtualenv .venv
# source .venv/bin/activate
# .venv\Scripts\activate.ps1 # For windows powershell

# Install modules and dependencies
pip install -r requirements.txt
```

### Run the python script

1. Update `.env` file with your credential and jira server details

```bash
cp .env.example .env
# Update .env file
```

2. Run the script

```bash
python fetch_logged_hours.py --username "" --startdate "" --enddate ""
```