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.1.tar.gz (4.3 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jira_easy-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 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.1.tar.gz
Algorithm Hash digest
SHA256 ab3076e4d64ddbf31ec3a65d438b8f0bdf4e8b6a5ea631836fda9867cf1556c3
MD5 213e9dbe0f595bde23f2af6c0545be8b
BLAKE2b-256 99c65d8042b78376fc87c99e0a1ae9fbaa7df034077110d532baade7fb5ac2e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jira_easy-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c059bf6158f81c16b9524c692a8d96fbe9eee10e42afe92799a7d2413ec806e
MD5 70b5137f927cca850d656898b6ac1a8d
BLAKE2b-256 81822d2c7bfd0832837b8a92ae5f2c0d73bf32617a31b9c6ffa0abe7eb410411

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