CLI tool for automation of user actions on a JIRA instance
Project description
Jira Off-load Tool - JOFT
What is this?
JOFT is a CLI tool for automation of user actions on a JIRA instance. This was created because the build-in automation in JIRA is not sufficient when you want to do complex actions without having the admin rights on the instance.
How does it work?
To do automation with JOFT you first need to write a yaml template file which will actually hold your actions that you want execute. You can execute actions per issue from a JQL trigger query or without it.
If you provide a specific trigger JQL query in the yaml file, all the described actions defined in a yaml template file will execute once per issue found by the trigger JQL query. A yaml template file can have only JQL trigger query. If you need more create another yaml template file with a different query.
If you don't provide the trigger JQL query, the defined actions will execute once.
Installation
Clone the repo. Create a virtualenv with the tool of your liking just make sure the Python version is 3.11 and higher.
To install the tool go to the root dir of the project, activate your venv, and run pip install .
. For development, run pip install -e .
instead.
To run all tests and type-checker run tox
.
Usage
First you need to have a jira instance and an account on that instance. Then you need get personal access token your PAT token. To be able to work with JOFT create a config for your JIRA instance in the root of the project folder. There is an default config example you can use in the project folder joft.config.toml.default
. Just remove the .default
from the end of the file and add your credentials and you are good to go.
To get help run the tool in CLI withou any options:
joft
.
To validate your yaml template file run:
joft validate --template ./<path to your yaml template>
To run the actions from your yaml template file run:
joft run --template ./<path to your yaml template>
Docs
Documentation can be found here.
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
File details
Details for the file joft-0.1.0.tar.gz
.
File metadata
- Download URL: joft-0.1.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a21183e3d6649d9d8367dac261b622d3523460bae29da568de02f99d31b3c50 |
|
MD5 | 4fa85d897a08eac9c61603c01b82aa35 |
|
BLAKE2b-256 | c2d4bf1131af3d32d2da168af674eb28470a02fbb0938fd6387cfa7fdddb0c79 |
File details
Details for the file joft-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: joft-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0229426b69dc7a05182d1d587b197c258b7e0d34242a552e59178d61f0b21404 |
|
MD5 | 5195b337ead95604b8166eb689cf68d5 |
|
BLAKE2b-256 | 225774a74ff953a295ec26913a34a1f8cdca0dc7b84c4f0fc5e7f0e387563a62 |