Project

General

Profile

Actions

Feature #10999

open

Ticket list filter: More flexible filter conditions

Feature #10999: Ticket list filter: More flexible filter conditions

Added by Frank Helk over 14 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues filter
Target version:
-
Resolution:

Description

I have not found any workaround on that by now ...

As far as I understand it, the filter conditions for the ticket list (text fields) filter on an exact phrase in any case. With that behaviour, I can't filter for tickets containing i.e. 2 words at random positions in the field. Normally I would circumvent that by just adding another filter on the same field, but unfortunately that is blocked - only one condition per field is allowed.

I would suggest to either

- allow multiple filter conditions on the same field, connected by "AND", or
- implement some kind of optional pattern search like RegEx, or
- (preferred) implement search pattern interpretation rules for text fields, like a choice of
"exact phrase / all words (AND) / any word (OR) / RegEx" as drop down list.


Related issues 4 (3 open — 1 closed)

Related to Redmine - Feature #1140: Filtering using more than one instance of each fieldNewActions
Related to Redmine - Feature #4939: List of tasks filtered as OR and not ANDNewActions
Related to Redmine - Feature #13635: Filtering issues by comparing two custom fields against each otherNewActions
Has duplicate Redmine - Feature #23216: Issues List, Enhanced Filtering - Allowing Multiple Queries & "OR"-type constraintsClosedActions

Updated by Daniel Albuschat about 14 years ago Actions #1

The first suggestion is related to #1140.

Updated by peter longfield almost 14 years ago Actions #2

+1 see also #6332

Updated by Ralph Twele over 13 years ago Actions #3

+1

Updated by Markus Garscha over 13 years ago Actions #4

+1

Updated by @ go2null over 12 years ago Actions #6

+1

Would also like to see it for (multi-select) lists:
  • any of (replaces is)
  • none of (replaces is not)
  • all of
  • not all of
  • is empty (replaces none)
  • is not empty (replaces any)

Updated by @ go2null over 12 years ago Actions #7

Note: you can currently filter text fields thus:
field contains value1%value2

Obvious caveat: value1 must be before value2 in field.

Updated by Toshi MARUYAMA over 12 years ago Actions #8

  • Related to deleted (Feature #6332: "OR" filter and not only "AND" filter)

Updated by txemi M about 11 years ago Actions #9

+1.

I would suggest allowing to bypass UI filter limitations accepting a query expressed in query language.
With this, next goals would be achieved:

  • Not adding complexity to current user interface, no need to develop complex user interface to express complex queries.
  • Easy to develop if query language matchs internal query ruby on rails languages (I am not a ruby developer, I am not sure how queries are expressed internally, but if so, sure the patch to achieve this would be very small).
  • Queries would not be limited to user interface, offering all features availables at backend.
  • Any user with some development hability could express any query.

At front end option to use query language instead of current form should be offered to users.

Any ruby on rails developer could throw an opinion on this, is it feasible?

Updated by Istvan Heckl about 11 years ago Actions #10

+1 :)

Updated by Jānis Elmeris about 11 years ago Actions #11

+1

Updated by Hide MATSUTANI over 10 years ago Actions #12

+1

I think it's better if we could choose in the 'list' formatted custom fields.

@ go2null wrote:

+1

Would also like to see it for (multi-select) lists:
  • any of (replaces is)
  • none of (replaces is not)
  • all of
  • not all of
  • is empty (replaces none)
  • is not empty (replaces any)

Updated by Jared Davenport over 10 years ago Actions #13

+1

Updated by Toshi MARUYAMA over 10 years ago Actions #14

  • Category changed from UI to Issues filter

Updated by Toshi MARUYAMA over 10 years ago Actions #15

  • Has duplicate Feature #23216: Issues List, Enhanced Filtering - Allowing Multiple Queries & "OR"-type constraints added

Updated by Anonymous over 10 years ago Actions #16

+1

Updated by Jean Louis over 10 years ago Actions #17

+10

I don't find plugin that do this, I try _query plugin but it's between 2 different filters.
I want to search (any of) words in only issues description filter, for example: word1 OR word2

@ go2null wrote:

Would also like to see it for (multi-select) lists:
  • any of (replaces is)
  • none of (replaces is not)
  • all of
  • not all of
  • is empty (replaces none)
  • is not empty (replaces any)

Updated by Quan VN over 10 years ago Actions #18

Dear Jean Louis
Thank you for your note. I see your point. For the list type fields, this is built-in as far as I understand. For text field in general, I will try to see if I can implement something like your suggestion.
Quan

Jean Louis wrote:

+10

I don't find plugin that do this, I try _query plugin but it's between 2 different filters.
I want to search (any of) words in only issues description filter, for example: word1 OR word2

@ go2null wrote:

Would also like to see it for (multi-select) lists:
  • any of (replaces is)
  • none of (replaces is not)
  • all of
  • not all of
  • is empty (replaces none)
  • is not empty (replaces any)

Updated by Quan VN over 10 years ago Actions #19

Update on July 24
@Jean Louis: Thank you again for your suggestion. I have implemented the two operators on the text field allowing to do boolean search within a text field, so you can search something like:

(word1 OR word 2) AND word3 AND NOT word4.

Please help me to test it here. (it is updated version of _query)

http://www.redmine.org/plugins/boolean_query

Jean Louis wrote:

+10

I don't find plugin that do this, I try _query plugin but it's between 2 different filters.
I want to search (any of) words in only issues description filter, for example: word1 OR word2

@ go2null wrote:

Would also like to see it for (multi-select) lists:
  • any of (replaces is)
  • none of (replaces is not)
  • all of
  • not all of
  • is empty (replaces none)
  • is not empty (replaces any)

Updated by Andreas F about 10 years ago Actions #20

Any news about this topic? We need the possibility to use and/or conditions. Also we need the possibility to filter project tags ...

A must have :)

Updated by Frank Helk about 10 years ago Actions #21

Doesn't look like there are any news on this. I'm still waiting for it, with some constantly nagging users in my back :(

BTW: I don't think that this functionality is a candidate for a plugin ... it should definitely be part of the Redmine core package.

Updated by Robert Mulvey over 9 years ago Actions #22

+1

Updated by Anonymous over 9 years ago Actions #23

+1

Updated by Susana Mielgo over 9 years ago Actions #24

+1

Updated by Mike Kozhurin over 9 years ago Actions #25

+1

Updated by Frank Helk over 9 years ago Actions #27

Hmmm - I see constantly dripping in "+1" from people who would like to have that too, but the issue is active for 5 years now w/o anybody feeling the urge to implement it.

Any hint how to draw a bit attention on this ?

Updated by Abuzer N over 9 years ago Actions #28

+1 this is so needed

Updated by Yu AOKI about 9 years ago Actions #29

@Quan VN
Thank you for boolean_query plugin.
When I tested it on redmine 3.1.0, I've got a NoMethodError on 'sql_contains', so I needed to modify line 175 on query_patch2.rb as follows:
(This is just FYI, since I am not exactly sure if 3.1.0 is under support, nor how I can contribute on this plugin, such as pull request.)

[before mod]
sql <<  "(" + sql_contains("#{db_table}.#{db_field}", term, match) + ")" 

[after mod]
sql <<  "(" + "LOWER(#{db_table}.#{db_field}) LIKE '%#{self.class.connection.quote_string(term.to_s.downcase)}%'" + ")" 

Thanks.

Quan VN wrote:

Update on July 24
@Jean Louis: Thank you again for your suggestion. I have implemented the two operators on the text field allowing to do boolean search within a text field, so you can search something like:

(word1 OR word 2) AND word3 AND NOT word4.

Please help me to test it here. (it is updated version of _query)

http://www.redmine.org/plugins/boolean_query

Jean Louis wrote:

+10

I don't find plugin that do this, I try _query plugin but it's between 2 different filters.
I want to search (any of) words in only issues description filter, for example: word1 OR word2

@ go2null wrote:

Would also like to see it for (multi-select) lists:
  • any of (replaces is)
  • none of (replaces is not)
  • all of
  • not all of
  • is empty (replaces none)
  • is not empty (replaces any)

Updated by Frank Helk about 9 years ago Actions #30

Just an additional opinion:

Creating some plugin is nice, but I presume that plugins are a measure for very special problems like interfacing to other software and tasks not close to Redmine's core functionality. Unfortunately then features requested here affect (tune up ? dope ? ;-) a very core part of Redmine, and I'd prefer them to be realized where they belong: In the core of Redmine.

Besides of that plugins tend to get unsupported with time moving on, and every new Redmine release bears the risk of breaking the plugin. I wouldn't recommend to expose such a core-near feature to that vulnerability.

Updated by Roman Yagodin about 9 years ago Actions #31

+1

Could not create a simple "Issues created or closed today" query without OR!

Updated by name zero over 8 years ago Actions #32

+1 :}

Actions

Also available in: PDF Atom