Skip to main content

CLI for Red Hat Jira (https://redhat.atlassian.net)

Project description

rhjira-python is a utility and library that provides functionality to interact with Red Hat's Jira (https://redhat.atlassian.net). The functionality in this project currently supports creating, editing, commenting on, and the displaying of jiras.

Configuration

Token Configuration

rhjira-python requires a Jira Token (from your Atlassian account security settings). The token can be exported as JIRA_TOKEN, however it is recommended users execute 'rhjira settoken' to store their token in their keyring. This is more secure than keeping the token in clear text and using JIRA_TOKEN.

When running 'rhjira settoken', you will be prompted for the Jira server URL (default https://redhat.atlassian.net), then an optional email address. The email is required for Atlassian Cloud instances (see below). Both server and email are stored in the keyring alongside your token.

Tokens can be removed from the keyring by simply removing the 'rhjira' entry. In the commonly used seahorse application, this can be done by removing the 'Password for '{username}' on 'rhjira'' entry. Similarly, the stored email can be removed by deleting the 'rhjira-email' entry, and the stored server by deleting the 'rhjira-server' entry.

Server Configuration

By default, rhjira connects to https://redhat.atlassian.net. To connect to a different Jira instance, set the JIRA_SERVER environment variable or run 'rhjira settoken' and enter the server URL when prompted (it is saved in the keyring):

export JIRA_SERVER="https://your-jira-instance.atlassian.net"

Atlassian Cloud instances require an email address for authentication. You can provide this in two ways:

  1. When running 'rhjira settoken' (recommended - stores in keyring)
  2. Via the JIRA_EMAIL environment variable:
export JIRA_EMAIL="your.email@example.com"

Environment Variable Priority

Environment variables take priority over keyring values, allowing for easy testing and per-session overrides:

  • JIRA_TOKEN overrides the keyring token
  • JIRA_EMAIL overrides the keyring email
  • JIRA_SERVER overrides the keyring server and default server URL

Help

All commands are supported via --help. For example, to get help on the comment command, execute "rhjira comment --help".

Problems found with rhjira-python can be reported at https://gitlab.com/prarit/rhjira-python/-/issues. As with all my projects, merge requests are welcomed!

Bugs with rhjira should include the version of rhjira you are running and the exact executed command that failed.

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

rhjira-4.0.4.tar.gz (65.2 kB view details)

Uploaded Source

Built Distribution

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

rhjira-4.0.4-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

File details

Details for the file rhjira-4.0.4.tar.gz.

File metadata

  • Download URL: rhjira-4.0.4.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rhjira-4.0.4.tar.gz
Algorithm Hash digest
SHA256 8acc71c0c180a955a2b97db6914fa0b08e56c053e3f6d7175c4a23f65d27f989
MD5 45e9806abf01fc24c337ff05fd8e1a1b
BLAKE2b-256 6ee0881b9f173869a7d17ccb3c4681bbfb94a1e78e1005812b4c60157290cc9b

See more details on using hashes here.

File details

Details for the file rhjira-4.0.4-py3-none-any.whl.

File metadata

  • Download URL: rhjira-4.0.4-py3-none-any.whl
  • Upload date:
  • Size: 40.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rhjira-4.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2cff25f247ca49e778116ac74d90a5d4c3e8ca9be9afaa61c3b2a232b6ed2e2
MD5 d79398b1dca05197bf149a7c36a47eea
BLAKE2b-256 1d715fcac9c2c7a0ef2a63a5f8c13060cefc204c75a1486a127b8e12afd9735b

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