Problem/Motivation
As a user I would like a way to record my worklog by starting and stopping a timer via clicking on a task card's timer icon. The timer would be user specific so that multiple people could log hours on the same task
Steps to reproduce
Proposed resolution
This would need several items
An API endpoint to start and stop a user's timer for a card
A timer storage to keep state for one timer per user. A user may have only one timer running at a time. starting a timer on one card will inform the user that another card's timer was stopped as a result of starting the new timer.
An event subscriber that fires when a user stops a timer that assigns the accumulated time to the work log.
Nice to have: a nightly cron that sends an email notification to any user that has an active timer running that has accumulated more than 12 hours (setting?). The email would suggest that they may have inadvertently left a timer running, and provides a link to shut it off and edit the worklog that just recorded.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork burndown-3611897
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jeremylichtman commentedThat would be a nice feature. Potentially complex to implement. Would need to be toggle-able on/off, because only some use-cases need this.
Comment #3
swirtMakes a good case for a sub module.
Comment #4
jeremylichtman commentedIf you can, by all means! If we need to add hooks into Burndown to support this, then just let me know.
Comment #6
swirtThis is actually a pretty substantial lift so I am going to move that to a separate ticket.
#3612410: Add email notification if timer left running
Comment #7
swirtComment #9
swirtThis has been merged. Will release this evening after a few more things get merged.
Comment #10
swirtComment #12
swirtReleased in #3612915: burndown 1.0.73