Skip to main content

A CLI utility to track how much time you spent on JIRA tickets

Project description

README

This command line tool let's you log the time that you've spent on one or more JIRA issues without the need to click through the JIRA web interface. We allow you to log the time either automatically (with a timer) or manually (by entering how much time you've spent in words, e.g. 1h, 30m).

Installation

Install jira-worklogger from pip using this command:

$ python -m pip install jira-worklogger

Demo

First time setup and automatic time logging

This demonstration shows how jira-worklogger is set up for the first time and then used to track the time you spent on a JIRA issue automatically. For this, select at least one issue from your open issues list start the timer. Leave the terminal open and start working on your issue. When you're done with your work, come back and press any key to stop the time and log the time in JIRA togethe with an optional comment.

Manual time logging

The following demo shows how you can show your issues from a pre-configure JIRA Server and select one to track the time manually. This is done by giving a duration like 1h for one hour or 20m for twenty minutes.

Advanced usage and "did"

The following demo shows how to work on multiple issues with different tracking methods as well as how to show your work log using the did tool. NOTE: At the time of writing this my pr was not yet merged into did.

Result in JIRA

In JIRA the result from the two time logs will look like this:

Usage

Personal access token (PAT)

In order to acquire a personal access token for use with jira-worklogger you have to go to https://<YOUR_JIRA_SERVER>/secure/ViewProfile.jspa?selectedTab=com.atlassian.pats.pats-plugin:jira-user-personal-access-tokens.

For the Red Hat issues, that is here.

Run from source

Clone the code.

$ git clone https://github.com/kwk/jira-worklogger
$ cd jira-worklogger

Install dependencies and set up virtual environment.

$ poetry install
Installing dependencies from lock file

No dependencies to install or update

Installing the current project: jira-worklogger (0.1.0)

Run the jira-worklogger CLI tool using poetry.

$ poetry run jira-worklogger
? Please select a server to work with (Use arrow keys)
 » Red Hat - https://issues.redhat.com
   ---------------
   Add a new server

Build Documentation

To build the documentation, you need the agg executable in your path. asciinema is needed if you want to record your own screencaptures.

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_worklogger-0.1.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

jira_worklogger-0.1.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file jira_worklogger-0.1.3.tar.gz.

File metadata

  • Download URL: jira_worklogger-0.1.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jira_worklogger-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e3df666b450d97c91b3aecc24e9cc3c7d789229ae869136978e1d7a441452134
MD5 1dbc949504f5e15b1aa4bbaabbd0cc8b
BLAKE2b-256 b71eabed416a72ed203840f8b86d7e28ab61c8c6c938e79bce598106f69aaf7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for jira_worklogger-0.1.3.tar.gz:

Publisher: python-publish.yml on kwk/jira-worklogger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jira_worklogger-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for jira_worklogger-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db443c5f7160f51ed2309a20364ef7c5073da188f69d86dd93d3209247394d1b
MD5 92f42ab220c6e5b8506ee6111eb76fff
BLAKE2b-256 e69002f2c2a2dc2b8a99be53c6c3debfa8ee4653be85811c4de73ea9607216fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for jira_worklogger-0.1.3-py3-none-any.whl:

Publisher: python-publish.yml on kwk/jira-worklogger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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