Feature #1692
openEnable time-tracking additional fields in reports filters
Added by Lars F. about 16 years ago. Updated over 3 years ago.
0%
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
Updated by Daniel N about 16 years ago
Refers to #772 - I agree, this would make time-logging even more useful.
Updated by Jean-Philippe Lang about 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 ?
Updated by Daniel N about 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.
Updated by Mischa The Evil about 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... :-)
Updated by Thomas Pihl over 13 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
Updated by Petra Loeffler about 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
Updated by Toshi MARUYAMA about 9 years ago
- Tracker changed from Patch to Feature
- Category set to Time tracking
Updated by Mischa The Evil about 7 years ago
- Related to Feature #25773: Add more custom fields types to criteria in time entries report added
Updated by Krzysztof Irzyk over 3 years ago
- File time_report.rb time_report.rb added
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