-
-
Notifications
You must be signed in to change notification settings - Fork 29
Description
Description:
While real-time tracking of time is great, in some cases, work needs to be recorded in specific increments (such as 5, 10, 15 minutes).
It would be great to enhance the time tracker to provide a configurable option (on/off (default)) that would round the start and end times for each segment as they are entered / recorded to a specified time increment (5, 10, 15 minutes, etc).
The following prototype illustrates the configuration element - although an additional configuration element would also be needed to allow the rounding increment to be specified.

I note that there may also be a need to optionally (configuration) prevent an entry from having the same start and end times. This could occur if the entry was started and stopped within the configured rounding interval. In this case, if the configuration is enabled, I would suggest adding the configured rounding interval. Something similar to the following (from a config perspective):

Acceptance Criteria:
Segment Timestamp Rounding (off):
This is the default mode of operation and preserves the existing behaviour. No change is expected from the current behavior in this mode.
Segment Timestamp Rounding (on):
When segment timestamp rounding is enabled, a default rounding interval (i.e. 5 min) should be specified by the system, with an optional configuration allowing the user to alter this (i.e. to 10 minutes, etc).
When a new segment is started, the Start time needs to be rounded to the nearest configured interval.
When an existing segment is ended, the End time needs to be rounded to the nearest configured interval.
Note, under this configuration, it is possible for the Start and End times to be rounded to the same time.
Prevent Same Start and End Times (off):
When this configuration is disabled (default), start and end times can be the same (when rounded).
Prevent Same Start and End Times (on):
When this configuration is enabled, start and end times cannot be the same. If the start and end times are the same once rounded, the end time should be adjusted by an additional rounding increment. that is, assuming a 5min rounding increment, if both start and end time are 11:00, then 5min should be added to the end time to obtain 11:05.
Benefits:
For users who require time to be logged in structured incremental blocks, this will make the time tracking system significantly more useful and reduce unproductive time needed to constantly edit each entry.