GithubHelp home page GithubHelp logo

logjammin's Introduction

Logjammin'

A batch time logger for JIRA

Prerequisites:

  • Python 3 is required.
  • The pytz and jira Python packages must be installed.
  • A JSON configuration file must exist at the path ~/.logjammin. The file has the following format:
{
    "host": "your JIRA hostname",
    "user": "your JIRA username",
    "password": "your JIRA password",
    "time_zone": "your tzdata time zone ID (e.g. US/Pacific)"
}
  • An optional log_file property can be set instead of specifying the log file via a command line argument.

Usage:

$ ./logjammin.py -h
usage: logjammin.py [-h] [-p] [file]

positional arguments:
  file              the file to load

optional arguments:
  -h, --help        show this help message and exit
  -p, --parse-only  parse the file only (don't verify tickets or upload logs)

As the file is parsed, each ticket is fetched from JIRA to ensure it exists. After parsing, a summary of the logs is presented for review along with a prompt to indicate whether or not to upload the logs to JIRA.

Time Log File Format:

The general format of the time log file is as follows:

YYYY-MM-DD
TICKET-123, 90m
TICKET-456, 1h 30m, added new feature

# a comment
YYYY-MM-DD
TICKET-789, 1.5h
  • Dashes in date strings are optional.
  • Blank lines are allowed but not required.
  • Whitespace is allowed but not required, e.g. TICKET-123,1h30m and TICKET-456 , 1 h 30 m are both valid log entries.
  • Ticket IDs and time entries are case-insensitive.
  • Dates can be repeated.
  • Comments can be added by starting a line with # or //.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.