/jira-timelog

Command-line Time Logger for Jira

Primary LanguageJavaScriptApache License 2.0Apache-2.0

jira-timelog

Command-line Time Logger for Jira

Usage

First setup the necessary environment variables: JTL_USERNAME and JTL_PASS. You can do this using:

export JTL_USERNAME=my.cool.username
export JTL_PASS=mysecretpass

Commands

List current issues

jtl

or

jtl list

List of hours worked

The command is:

jtl logs [options] <date>

Examples:

jtl logs 2018-09-04

to filter by project use:

jtl logs --project=INT 2018-09-04

Log hours worked

The command is:

jtl log [options] <issueId> <time> [message]

Examples:

Normal logging:

jtl log INT-123 1h

Logging with a different message:

jtl log INT-123 1h "Wow a cool message"

Logging with a different date than today:

jtl log --date=2018-08-28 INT-123 1h