Giter VIP home page Giter VIP logo

toggl-to-jira's Introduction

Hey there!

I'm Kelly, a full stack developer from Brisbane Australia.

I'm currently focused on:

  • Kotlin and TypeScript
  • Venturing into .NET and C#
  • Learning more about developer portals, particularly Spotify's Backstage
  • Technical writing, better documentation, and docs like code

When I'm not doing dev-related stuff, I'm:

  • ๐Ÿ“š๐Ÿ‘€ Reading
  • ๐Ÿ’ฌ:de: Attempting to learn German to at least a B2 level
  • ๐Ÿ’ช:sweat_smile: Trying to build enough upper body strength to someday do an unassisted pull-up
  • โœˆ๏ธ๐ŸŒ Travelling (16 countries so far, but currently on hold due to the pandemic - hopefully not for much longer!)

toggl-to-jira's People

Contributors

kaije avatar

Watchers

 avatar

toggl-to-jira's Issues

Consider tracking entries already sent to Jira

At the moment, the script can only be run once per target date, or the user risks sending duplicate work log entries to Jira.

As each Toggl entry has a unique id, we could maintain a log of entries already sent to Jira somewhere on the user's machine (e.g. a local file? app data?).

Extract duration formatting logic out of WorkLogger into a utils class

Feature: Print a duration in seconds in the format "0h 0m 0s" or "0h 0m".

Currently used when listing found Toggl entries for review by the user.

Should also use this format in the message displayed when an entry is sent to Jira, rather than displaying the duration in seconds:

Logging 312 seconds to Jira issue SDDSD-3917: Work on Toggl to Jira script...
https://qut.atlassian.net/rest/api/2/issue/SDDSD-3917/worklog
Success!

Will also want to use this formatting logic when the 'round to nearest minute' feature is implemented.

e.g.

(XYZ-3917) Work on Toggl to Jira script - 0h 5m 12s (Will be rounded to 0h 5m)
(XYZ-3917) Work on Toggl to Jira script - 0h 0m 4s  (Will be rounded to 0h 1m)
(ABC-123) Wrote some docs - 1h 07m 39s (Will be rounded to 1h 8m)

Round Toggl time entries to the nearest minute

There are a couple of relevant aspects:

a) Jira will not accept any work log of less than 1 minute (returns a 400 Bad Request response)

b) Jira only logs hours and minutes - leftover seconds are discarded. This means that if you have a Toggl time entry of 4m 59s, it will be logged in Jira as 4 minutes. (The missing seconds will add up over time, so it seems worth rounding up where the remaining seconds are greater than 30.)

Fix linting configuration to work with ESLint 7.32.0

An error occurs when running npm run lint following the recent updates to dependencies:

ESLint: 7.32.0

Error: Cannot read config file: C:\Users\Kelly\dev\repos\toggl-to-jira\node_modules\[email protected]
Error: "prettier/@typescript-eslint" has been merged into "prettier" in eslint-config-prettier 8.0.0. See: https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21
Referenced from: C:\Users\Kelly\dev\repos\toggl-to-jira.eslintrc
at Object. (C:\Users\Kelly\dev\repos\toggl-to-jira\node_modules\[email protected]:1:69)
...

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.