pyJiraCli is a command-line tool designed for handling Jira tickets efficiently. With pyJiraCli, you can import/export tickets to JSON files, create tickets on the server using JSON files and search for tickets based on a search string.
- Overview
- Installation
- Usage
- Commands
- Examples
- Add a command
- Compile into an executable
- Used Libraries
- Issues, Ideas And Bugs
- License
- Contribution
More information on the deployment and architecture can be found in the doc folder.
git clone https://github.com/NewTec-GmbH/pyJiraCli.git
cd pyJiraCli
pip install .
pyJiraCli [-h] [--profile <profile>] [-u <user>] [-p <password>] [-t <token>] [-s <server URL>] [--version] [-v] {command} {command_options}
Flag | Description |
---|---|
--verbose , -v | Print full command details before executing the command. Enables logs of type INFO and WARNING. |
--version | Import a ticket from a JSON file. |
--help , -h | Show the help message and exit. |
There are two options for providing the server credentials to the tool:
- Provide all credentials via Command Line arguments:
--server <server URL>
is required.- ID using
--user <user>
and--password <password>
- Instead of user and password, you can use a token with the
--token <token>
option.
- Provide the name of a server profile using
--profile <profile>
. A profile stores the server credentials for easier reuse, and its created using theprofile
command. See here for more information on the profile command.
Command | Description |
---|---|
export | Export a ticket from a Jira Server to a JSON file. |
import | Import a ticket from a JSON file. |
search | Search the Jira server for issues . |
Print the Jira Issue details to the console. | |
profile | Add, list, delete or update server profiles. |
get_sprints | Get raw Sprint data. |
Import an issue:
pyJiraCli --profile my_profile import ./examples/import_issues/single_issue.json
Check out the all the Examples on how to use the pyJiraCli tool.
If you want to add a ned command for the tool, you can find the instructions here.
It is possible to create an executable file that contains the tool and all its dependencies. "PyInstaller" is used for this. Just run the following command on the root of the folder:
pyinstaller --noconfirm --onefile --console --name "pyJiraCli" --add-data "./pyproject.toml;." "./src/pyJiraCli/__main__.py"
Used 3rd party libraries which are not part of the standard Python package:
- jira - Python library for interacting with JIRA via REST APIs - BSD License (BSD-2-Clause).
- colorama - ANSI color support - BSD-3 License
- toml - Parsing TOML - MIT License
If you have further ideas or you found some bugs, great! Create a issue or if you are able and willing to fix it by yourself, clone the repository and create a pull request.
The whole source code is published under BSD-3-Clause. Consider the different licenses of the used third party libraries too!
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed as above, without any additional terms or conditions.