Feature #1377
closedExtension of filter
100%
Description
I received the following request.
- Filter by open / closed. Right now we have to add every status which is possible to each site where a list is displayed. This also has to be done each time a new status is added.
- Field names instead of using IDs (something which has been proposed by Cladio as pull request)
- Count tickets (also something which has been proposed by Cladio as pull request)
- new comparison operators, eg. "!=" and ">". Especially the ">" or "<" would be helpful to filter by date
Updated by Tomohisa Kusukawa almost 10 years ago
- Status changed from 担当(Assigned) to 解決(Resolved)
- % Done changed from 0 to 100
更新履歴 commit:b1e90f2cb10d で適用されました。
Updated by Tomohisa Kusukawa almost 10 years ago
add those features on commit:b1e90f2 .
- Filter by open
open issues {{ref_issues(-f:status_id o)}} closed issues {{ref_issues(-f:status_id c)}}
- Field names instead of using IDs
e.x. {{ref_issues(-f:project=prjA)}}
- Count tickets
e.x. {{ref_issues(-f:project=prjA, -c)}}
- new comparison operators, eg. "!=" and ">". Especially the ">" or "<" would be helpful to filter by date
<<operators>>
class_attribute :operators self.operators = { "=" => :label_equals, "!" => :label_not_equals, "o" => :label_open_issues, "c" => :label_closed_issues, "!*" => :label_none, "*" => :label_any, ">=" => :label_greater_or_equal, "<=" => :label_less_or_equal, "><" => :label_between, "<t+" => :label_in_less_than, ">t+" => :label_in_more_than, "><t+"=> :label_in_the_next_days, "t+" => :label_in, "t" => :label_today, "ld" => :label_yesterday, "w" => :label_this_week, "lw" => :label_last_week, "l2w" => [:label_last_n_weeks, {:count => 2}], "m" => :label_this_month, "lm" => :label_last_month, "y" => :label_this_year, ">t-" => :label_less_than_ago, "<t-" => :label_more_than_ago, "><t-"=> :label_in_the_past_days, "t-" => :label_ago, "~" => :label_contains, "!~" => :label_not_contains, "=p" => :label_any_issues_in_project, "=!p" => :label_any_issues_not_in_project, "!p" => :label_no_issues_in_project } class_attribute :operators_by_filter_type self.operators_by_filter_type = { :list => [ "=", "!" ], :list_status => [ "o", "=", "!", "c", "*" ], :list_optional => [ "=", "!", "!*", "*" ], :list_subprojects => [ "*", "!*", "=" ], :date => [ "=", ">=", "<=", "><", "<t+", ">t+", "><t+", "t+", "t", "ld", "w", "lw", "l2w", "m", "lm", "y", ">t-", "<t-", "><t-", "t-", "!*", "*" ], :date_past => [ "=", ">=", "<=", "><", ">t-", "<t-", "><t-", "t-", "t", "ld", "w", "lw", "l2w", "m", "lm", "y", "!*", "*" ], :string => [ "=", "~", "!", "!~", "!*", "*" ], :text => [ "~", "!~", "!*", "*" ], :integer => [ "=", ">=", "<=", "><", "!*", "*" ], :float => [ "=", ">=", "<=", "><", "!*", "*" ], :relation => ["=", "=p", "=!p", "!p", "!*", "*"] }
Updated by Matthias Reinhardt almost 10 years ago
Wow! This was fast
One additional thing: support for field names for custom fields would be nice also
Updated by Tomohisa Kusukawa over 9 years ago
- Related to Question #1370: assigned_to_id が 「なし」のチケット一覧を表示するにはどうしたら良い? added
Updated by Tomohisa Kusukawa over 9 years ago
- Status changed from 解決(Resolved) to 終了(Closed)