Registry / testing / pytest-jira

pytest-jira

JSON →
library0.3.24pypypiunverified

pytest plugin for JIRA integration using markers. Allows linking test cases to JIRA issues, updating test results, and verifying issue status. Current version 0.3.24, requires Python >=3.9. Maintained irregularly with community contributions.

pip install pytest-jira
INSTALL
IMPORT
SIG · PYTEST-JIRA
P
pytest-jira
testingpythonv0.3.24
Install
3.6s avg
Import
Disk
33MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.24 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.6s · import 0.000s · 35MB
33MB installed
● package 33MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pytest_jira
pytest_plugins = ['pytest_jira']
import pytest_jira
pytest plugins are auto-discovered; explicit import not needed and may cause issues

Basic usage: set environment variables and use @pytest.mark.jira marker.

import os # Configure via environment variables (recommended) or pytest.ini os.environ['JIRA_URL'] = 'https://your-jira-instance.atlassian.net' os.environ['JIRA_USER'] = 'your-email@example.com' os.environ['JIRA_PASSWORD'] = os.environ.get('JIRA_PASSWORD', '') # Or use token authentication: # os.environ['JIRA_TOKEN'] = 'your-api-token' # Mark test with JIRA issue key import pytest @pytest.mark.jira('PROJECT-123') def test_example(): assert 1 + 1 == 2
Debug
Known issues
gotchaPlugin auto-registers; do not import pytest_jira directly in test files. Instead, use the marker @pytest.mark.jira('KEY') after installing the package.
fix
Remove any explicit import of pytest_jira. The plugin is activated by installing the package.
affects: >=0.3.0
deprecatedUsing 'py.test' command is deprecated; use 'pytest' instead.
fix
Run tests with 'pytest' not 'py.test'.
affects: >=0.3.20
breakingFrom version 0.3.19, token authentication via JIRA_TOKEN environment variable is supported. In previous versions only basic auth (username/password) was available.
fix
Set JIRA_TOKEN environment variable instead of JIRA_USER/JIRA_PASSWORD if using token auth.
affects: <0.3.19
gotchaConnectivity check may fail with invalid JSON if JIRA response is not expected format; fixed in 0.3.23.
fix
Upgrade to >=0.3.23 to avoid JSON parsing errors during connectivity check.
affects: <0.3.23
Upgrade
Version history
0.3.24latest on PyPI · released Mar 19, 2026
Audit
Dependencies
pytestrequiredRequired plugin host
jirarequiredJIRA REST API client
requestsrequiredHTTP library used internally
Agent activity
33 hits · last 30 days
node
27
OpenAI (training)
1
Resources
pytest-jira — pip install pytest-jira · libregistry