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

Stop current task & Start last task #26

@Reid-P-Garcia

Description

@Reid-P-Garcia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions