Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Time entries shorter than 1 minute cause Bad Request response from jira #6

Closed
gabrii opened this issue Aug 18, 2020 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@gabrii
Copy link

gabrii commented Aug 18, 2020

Sometimes due to lots of context switching I might log less than a minute, which causes a 400 response from jira when creating the worklog.

Possible solutions, in order of preference:

  1. ceil instead of round the time, therefore those entries will be at least one minute.
  2. Log the time in seconds instead of rounding it to minutes.
  3. Filter out from the popup tasks shorter than one minute.

I will take a look at the code later and decide a solution that works for me. If it's too opinionated, I'll add an option to customize the behavior.

@gabrii
Copy link
Author

gabrii commented Aug 18, 2020

@simoneldevig Could you add the bug label and assign it to me? I should get around it this week.

@simoneldevig simoneldevig added the bug Something isn't working label Aug 18, 2020
@simoneldevig
Copy link
Owner

Solved in #7

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants