Skip to main content

A simple Python library for fetching JIRA issues using JQL.

Project description

jira_easy

A simple Python library that performs basic JIRA operations (like fetching and creating issues via JQL).

Installation

Install directly from source:

pip install jira-easy

Usage

Fetching

from jira_easy import JIRAClient

# Provide your JIRA URL and API token
jira_url = "https://your-jira-instance.atlassian.net/rest/api/2/search"
api_token = "YOUR_JIRA_API_TOKEN"

# Initialize the client
client = JIRAClient(jira_url, api_token)

# Define your JQL query
jql_query = 'project = "PROJ" AND status = "Open" ORDER BY key ASC'

# Fetch issues matching the query
issues = client.fetch_issues(jql_query)
print(f"Number of issues found: {len(issues)}")
for issue in issues:
    print(issue.get("key"), "-", issue["fields"].get("summary"))

Creating

from jira_easy import JIRAClient

# Use your actual JIRA URL base (without /search or /issue appended).
# Example: "https://your-domain.atlassian.net/rest/api/2"
jira_base_url = "https://your-domain.atlassian.net/rest/api/2"
api_token = "YOUR_JIRA_API_TOKEN"

# Initialize the JIRA client
client = JIRAClient(jira_base_url, api_token)

# Create a new issue with a specified priority
created_issue = client.create_issue(
    project_key="MYPROJECT",
    summary="Bug: App crashing on startup",
    description="Steps to reproduce...\n1. ...\n2. ...\netc.",
    issue_type="Bug",
    priority="High"
)

# The response JSON contains details about the new issue
print("New issue key:", created_issue.get("key"))

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

jira_easy-1.0.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

jira_easy-1.0.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file jira_easy-1.0.2.tar.gz.

File metadata

  • Download URL: jira_easy-1.0.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for jira_easy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1e37955eba147c26cbc5a16932c00d1a430a43bdfd21e5ba45752f3f32037571
MD5 333f410f722d681c7128d125593b4298
BLAKE2b-256 666286689fb77057d9326ae43c3a7484f75c6ede95ecc11b95a9fcc96adfe77f

See more details on using hashes here.

File details

Details for the file jira_easy-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: jira_easy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.0

File hashes

Hashes for jira_easy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1697688ebe4b152799574f27c4a0f892cc1755fea5bd06789f396c693eab8a58
MD5 02f4ad03101d81b216b7c3fe8dfa639e
BLAKE2b-256 5f1fdb15d7453109b75e54ee641959e3bb88e18b484c4d5d13f8c6c2ae959954

See more details on using hashes here.

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