Project

General

Profile

Actions

Feature #1692

open

Enable time-tracking additional fields in reports filters

Added by Lars F. over 16 years ago. Updated about 4 years ago.

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

0%

Estimated time:
Resolution:

Description

unfortunately i can't set up filter on my customized fields in the time-tracking module.
this might be a very nice feature to have ;-)


Files

time_report.rb (6.58 KB) time_report.rb File with code at note-6 Krzysztof Irzyk, 2020-12-18 00:39

Related issues

Related to Redmine - Feature #1766: Custom fields should become addable to Spent Time list/reportClosedJean-Philippe Lang2008-08-11

Actions
Related to Redmine - Feature #25773: Add more custom fields types to criteria in time entries reportNew

Actions
Has duplicate Redmine - Feature #6972: Custom fields in timelog reportClosed2010-11-24

Actions
Actions #1

Updated by Daniel N over 16 years ago

Refers to #772 - I agree, this would make time-logging even more useful.

Actions #2

Updated by Jean-Philippe Lang over 16 years ago

Actually, boolean and list timelogs custom fields are available in the time report (eg. /projects/foo/timelog/report).
Which report filters are you exactly speaking about (please give url) and what kind of filter do you use ?

Actions #3

Updated by Daniel N over 16 years ago

Jean-Philippe Lang wrote:

Actually, boolean and list timelogs custom fields are available in the time report (eg. /projects/foo/timelog/report).
Which report filters are you exactly speaking about (please give url) and what kind of filter do you use ?

Having other custom fields like date or integer would be very usefull in reports.
There is some more information on this topic in #1766

Having those also in Timelog "Details" (/projects/xxxprojectxxx/timelog/details) would be very useful and would make effective time-tracking and accounting possible. Useful would also be the possibility to have the possibility to edit (or even mass edit) custom fields from the timelog Details list for example like on the issues list with a context menu.

If you have a boolenan custom field "accounted" or "paid" then you could easily update the timelog entry via the context menu or even select some entries and update them all.

Actions #4

Updated by Mischa The Evil over 16 years ago

I took the liberty to follow-up the discussion of this issue on the forums to keep the issue as concrete as possible... :-)

Actions #5

Updated by Thomas Pihl almost 14 years ago

I would really have use for the user. custom fields to show up as well. It is very useful when breaking down on group of user

Actions #6

Updated by Petra Loeffler over 9 years ago

Last comments were long ago, but I needed custom fields of type string in time-logging report.
I added new criteria in …/redmine/lib/redmine/helpers/time_report.rb

   # Add string custom fields as available criteria
        custom_fields.select {|cf| %w(text) }.each do |cf|
          @available_criteria["cf_#{cf.id}"] = {:sql => cf.order_statement,
                                                   :joins => cf.join_for_order_statement,
                                                   :format => cf.field_format,
                                                 :custom_field => cf,
                                                 :label => cf.name}
        End
# Add list and boolean custom fields as available criteria

Actions #7

Updated by Toshi MARUYAMA over 9 years ago

  • Tracker changed from Patch to Feature
  • Category set to Time tracking
Actions #8

Updated by Mischa The Evil over 7 years ago

  • Related to Feature #25773: Add more custom fields types to criteria in time entries report added
Actions #9

Updated by Krzysztof Irzyk about 4 years ago

Petra Loeffler wrote:

Last comments were long ago, but I needed custom fields of type string in time-logging report.
I added new criteria in …/redmine/lib/redmine/helpers/time_report.rb

[...]

I added your code to 4.1.1 (Docker version), and works - thanks.
+1 for this feature

Actions

Also available in: Atom PDF