streamdeck-toggl icon indicating copy to clipboard operation
streamdeck-toggl copied to clipboard

Stop current task & Start last task

Open rgarcia525 opened this issue 4 years ago • 2 comments
trafficstars

I'm not sure if this is possible with the Toggl API, but I think this would be one of the main ways I would use the plugin.

As someone who is very often changing the description and project, I think having 1 start/stop button would be the best for me. In an ideal world, that same button would be red when time is being tracked and black when not.

Example:

  1. I'm timing a task
  2. I get up to take a break - press the button - timer stops
  3. I get back from my break - press the button - timer starts the last task I was timing

I'll likely also then have a 2nd button that simply launched the Toggl app (System > Open). Others could have it open the Toggl Website (System > Website).

I would then use the app (or website) to start a new task that I wanted to change the details of.

You likely know better than me and my 30 seconds of API glancing, but here are my initial thoughts:

Stop current task

  1. Get running time entry
  2. Stop a time entry (using info from API call 1)

Start last task

  1. Get time entries started in a specific time range
  2. Start a time entry (grabbing the last entry from API call 1)

THANKS IN ADVANCE! :)

rgarcia525 avatar Jun 29 '21 15:06 rgarcia525

So stopping the current task will definitely implemented in the rewrite, but the idea of restarting the last task is very good! I'll try to implement that :)

tobimori avatar Jun 29 '21 17:06 tobimori

That exactly what I want 👍

innovaweb-dev avatar Jan 06 '22 19:01 innovaweb-dev