Project

General

Profile

Actions

Patch #1650

open

Start/end time tracking for timelogging

Added by Artem Vasiliev almost 16 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
Start date:
2008-07-15
Due date:
% Done:

0%

Estimated time:

Description

This is an implementation of http://www.redmine.org/boards/1/topics/show/1027.
Patch is made against current HEAD (r1669).

Workflow is somewhat revised with me and Anna (we work together):
  • Time entry form now has 2 new datetime fields, Start Time and End Time (see attached screenshot). They have buttons Now which fills relevant field with current time if it's empty.
  • Hours field made not required but at least one of (Start Time, Hours) is required to be filled. If Start Time is filled and Hours is not entry is considered to be In Progress.
  • Log Time link loads current In Progress time entry (if any) for current user
  • Same goes for Issue Edit form as it also has Log Time fields group
  • If both Start Time and End Time are set and Hours is not Hours get calculated on Save
  • if entered manually Hours is not validated to be equal to (End Time - Start Time) - user may wish to specify that he worked time to time from 11:00 to 15:00, but that made only 1 hour of continuous time
  • After time entry saving flash notice contains links to other time entries by the same user that intersect with saved one

Relevant translations for English and Russian are included; for the rest languages there are English stubs.
Tests are included.

Also the patch contains test utility rake rules file (vendor/plugins/test_utils/tasks/test_utils.rake) that allows to run only one or several tests from a file, e.g.

rake u_time_entry-find

runs test_find* test cases from unit/time_entry_test.rb;

rake f_issues-show_in_progress

runs test_show_in_progress test case from functional/issues_controller_test.rb

It's developed as a plugin in my company, Texuna Technologies, and distributed under MIT license.
This is not directly related to the patch but seems to be exteremely useful so I couldn't stand including it. Feel free to remove it anyway.


Files

timelogging.patch (62.4 KB) timelogging.patch the patch Artem Vasiliev, 2008-07-15 18:35
timelogging.PNG (57 KB) timelogging.PNG screnshot of updated Time Entry form Artem Vasiliev, 2008-07-15 18:36
timelogging.patch (33.5 KB) timelogging.patch Riccardo Delpopolo, 2009-03-19 13:36
timelogging-r2641.patch (34 KB) timelogging-r2641.patch Patch rebased against trunk at r2641 Mischa The Evil, 2009-03-30 04:04

Related issues

Related to Redmine - Feature #440: Time tracking stopwatchNew

Actions
Related to Redmine - Defect #5892: Changing status from contextual menu opens the ticket insteadClosed2010-07-16

Actions
Actions

Also available in: Atom PDF