These rules apply to both Manual and Automatic timers. If you think that's not what you want let us know.
Clockwork uses logged time (automatic or manual) and Working Hoursto calculate the Time Spent on an issue. See the examples below.
When the Timer Starts and Stops on the Same Day
When all work is logged on the same day, Clockwork will take the time between a start and stop without taking Working Hours into account. Because Working Hours are not considered, a user can log more than 8 hours in a single day.
When the Timer Starts and Stops on Different Days
In cases where the timer starts and stops on different days, Clockwork uses Working Hours to calculate the Time Spent. This ensures accurate time tracking without users needing to remember to start and stop timers at the beginning/end of their workdays.
Time reported in a different time zone will be converted to the time zone from the Clockwork configuration.
The following examples assume that the time zone is set to UTC and that the working hours are as follows:
While Working Hours shows a specific start and end time, Clockwork recognizes that different users have different schedules. (A user can configure their own Working Hours, by going to Apps > Clockwork in the main Jira menu and selecting Working Hours). Clockwork will assume the user’s normal start time based log entries and use the number of hours allowable in a work day (from the Working Hours) to detects overnight and over-the-weekend time. The overnight and over-the-weekend time will be subtracted from the total time logged to calculate the Time Spent. The total reported time will be split among days worked with one Jira worklog entry for each day.
Reported Jira worklog entries
Clockwork assumes the user starts everyday work at 11am and will report 8 hours for Tuesday (full day) and 4 hours for Wednesday (11am → 3pm)
Clockwork assumes the user starts everyday work at 11am and leaves the office 8 hours later at 7pm. Clockwork reports two hours for Tuesday (5pm → 7pm) and no hours for Wednesday.
Total: 15h 15m
Clockwork assumes the user starts everyday work at 9am and leaves the office 8 hours later at 5pm. As 5:45pm occurred outside the working hours, Clockwork assumes the user has worked overnight and reports 15 hours 15 minutes total.
If the Working Hours duration was increased to 9h on Wednesday, Clockwork would report 15m only (see the explanation for case #2 above)
Clockwork assumes the user starts everyday work at 9am and leaves the office 6 hours later (see Working Hours for Friday, which spans for 6h duration) at 3pm. Clockwork reports two hours for Friday (1pm → 3pm) and no hours for Monday.
Saturday and Sunday are ignored. These days are inactive in the configured Working Hours.
Multiple Issues In Progress
Clockwork only allows a user to log work on one issue at a time. If a user has a time running on more than one issue, they will see a warning prompting them to transition (or reassign) one of the issues.