No description
- Python 100%
|
|
||
|---|---|---|
| .gitignore | ||
| .python-version | ||
| env.example | ||
| jira_client.py | ||
| README.md | ||
| requirements.txt | ||
jira-api-toolkit
Scratch space for ad-hoc Jira Cloud API calls — for when the data or action you need isn't available through the Jira UI or is faster to get via the REST API directly.
Setup
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp env.example .env # fill in ATLASSIAN_URL / ATLASSIAN_USERNAME / ATLASSIAN_TOKEN
Usage
jira_client.py exposes make_client(), which returns an authenticated
atlassian.Jira instance:
from jira_client import make_client
jira = make_client()
issue = jira.get("rest/api/3/issue/ABC-123")
Write one-off scripts against rest/api/3/* or rest/servicedeskapi/* as
needed — there's no fixed structure here beyond the shared client.