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

Command icon 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

swirt created an issue. See original summary.

jeremylichtman’s picture

That would be a nice feature. Potentially complex to implement. Would need to be toggle-able on/off, because only some use-cases need this.

swirt’s picture

Makes a good case for a sub module.

jeremylichtman’s picture

If you can, by all means! If we need to add hooks into Burndown to support this, then just let me know.

swirt’s picture

Issue summary: View changes

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.

This 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

swirt’s picture

Status: Active » Needs review

  • swirt committed d06a464c on 1.0.x
    feat #3611897 Add time tracker clock
    
swirt’s picture

This has been merged. Will release this evening after a few more things get merged.

swirt’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

swirt’s picture