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:
- When running 'rhjira settoken' (recommended - stores in keyring)
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rhjira-4.0.3.tar.gz.
File metadata
- Download URL: rhjira-4.0.3.tar.gz
- Upload date:
- Size: 64.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c36be0327bad973ab6a0fec12a1ed9c39b468c2e3a12dc34118e7363b3bb2847
|
|
| MD5 |
390d462cd2a58725adeea2c730d9a5cf
|
|
| BLAKE2b-256 |
f62729d8ac34e64cb0a76d619cc9d329d13b9406b1aab7c2e930fc7c74f8f448
|
File details
Details for the file rhjira-4.0.3-py3-none-any.whl.
File metadata
- Download URL: rhjira-4.0.3-py3-none-any.whl
- Upload date:
- Size: 39.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f4d081c664451321b8129e0aee6e8f5e3d53ca08b6e707461a0c200641dac2d
|
|
| MD5 |
9eea88c3ea2867cf966df93c9b95569c
|
|
| BLAKE2b-256 |
f1dfd4731481edc34a51f339170ddb11874b7d929d469edf77c88894337d9bae
|