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

Stop current task & Start last task #26

Open
rgarcia525 opened this issue Jun 29, 2021 · 2 comments
Open

Stop current task & Start last task #26

rgarcia525 opened this issue Jun 29, 2021 · 2 comments
Labels
enhancement New feature or request planned

Comments

@rgarcia525
Copy link

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! :)

@tobimori
Copy link
Owner

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 tobimori added enhancement New feature or request planned labels Jun 29, 2021
@tobimori tobimori self-assigned this Jun 29, 2021
@innovaweb-dev
Copy link

That exactly what I want 👍

@tobimori tobimori removed their assignment Jun 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request planned
Projects
None yet
Development

No branches or pull requests

3 participants