Skip to main content

A cli utility to book time in jira

Project description

jira-timetracking-cli

This tool can be used to book times into JIRA issues. This tool uses the internal rest api (v3) of JIRA and therefore can be subject to change. Use it on your own risk!

Installation

Create new virtualenv virtualenv ./venv, activate it source venv/bin/activate install all requirements pip install -r requirements.txt. Then build the project using pyinstaller book-time.spec. Add dist/book-time to your $PATH and use it.

Usage

Before using the tool you need to specify the following environment variables:

  • JIRA_URL: The jira base url. Eg. https://jira.test.com/
  • JIRA_USER: Your JIRA user (eg. email address)
  • JIRA_TOKEN: Your API access token

See help for more information about the arguments: book-time -help. Examples:

book-time -yesterday -ticket ABC-1234 -duration 3h15m -at 12:45
book-time -today -ticket ABC-1234 -duration 3h15m -at 12:45
book-time -ticket ABC-1234 -duration 3h15m -date 28-10-22 -now
book-time -ticket ABC-1234 -duration 3h15m -date 28-10-22 -at 12:45

If you don't want to set a specific time and instead always book at the same time, you can just use an alias:

alias book-time='book-time -at 10:00'

Completion

source <(book-time completion)

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_timesheet_cli-1.0.0.tar.gz (6.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_timesheet_cli-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file jira_timesheet_cli-1.0.0.tar.gz.

File metadata

  • Download URL: jira_timesheet_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.12 Darwin/21.6.0

File hashes

Hashes for jira_timesheet_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3c95dc2782dc93cf9b7e18908312879133de9cc719fc398b4587752e40ce0ad8
MD5 d36d1f775bba2d0bca61aac28884f29e
BLAKE2b-256 3f8b9283d10d1da308b31492b2be0b8e6e7100cad6895a26c6a0c46e0a0e114d

See more details on using hashes here.

File details

Details for the file jira_timesheet_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: jira_timesheet_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.12 Darwin/21.6.0

File hashes

Hashes for jira_timesheet_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b110d928dbd52d0669d1dfd2d0dffd6e663fcb1626ed4d5b3a9a2a0613df31af
MD5 123dd3bc24659ad8ff2d03d28dda1e3e
BLAKE2b-256 bf49e102fe8a686a1940a2d429fd5131ebf6c005f6890f4c06575812412a5e96

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