Project

General

Profile

Actions

Feature #1692

open

Enable time-tracking additional fields in reports filters

Feature #1692: Enable time-tracking additional fields in reports filters

Added by Lars F. over 18 years ago. Updated almost 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Time tracking
Target version:
-
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 3 (1 open — 2 closed)

Related to Redmine - Feature #1766: Custom fields should become addable to Spent Time list/reportClosedJean-Philippe LangActions
Related to Redmine - Feature #25773: Add more custom fields types to criteria in time entries reportNewActions
Has duplicate Redmine - Feature #6972: Custom fields in timelog reportClosedActions

Updated by Daniel N over 18 years ago Actions #1

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

Updated by Jean-Philippe Lang over 18 years ago Actions #2

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 ?

Updated by Daniel N over 18 years ago Actions #3

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.

Updated by Mischa The Evil over 18 years ago Actions #4

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

Updated by Thomas Pihl almost 16 years ago Actions #5

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

Updated by Petra Loeffler over 11 years ago Actions #6

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

Updated by Toshi MARUYAMA over 11 years ago Actions #7

  • Tracker changed from Patch to Feature
  • Category set to Time tracking

Updated by Mischa The Evil over 9 years ago Actions #8

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

Updated by Krzysztof Irzyk almost 6 years ago Actions #9

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: PDF Atom