Project

General

Profile

Actions

Feature #13347

open

Filtering by issue subject with wildcard

Feature #13347: Filtering by issue subject with wildcard

Added by Philipp Zabel almost 14 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Resolution:

Description

If I'm right it is not possible to filter issues by subject with a wildcard. This could be very useful, maybe by using "*" character.


Related issues 3 (1 open — 2 closed)

Related to Redmine - Defect #19786: '%' and '_' are treated as SQL wildcards in issue filterClosedActions
Related to Redmine - Feature #35073: Escape values in LIKE statements to prevent injection of placeholders (_ or %)ClosedMarius BĂLTEANUActions
Related to Redmine - Feature #38423: Regular expression support for string/text type filtersNewActions

Updated by Dipan Mehta over 13 years ago Actions #1

+1. This would be great to have.

Updated by David Rahusen almost 13 years ago Actions #2

+1

I am wondering this is not yet possible... :-(

Updated by Philipp Kroll about 12 years ago Actions #3

I'm also interested in this feature.

Updated by Jos Groot Lipman almost 12 years ago Actions #4

There is an undocumented way to do it. You can add these parameters to the URL:

f[]=subject
&op[subject]=~
&v[subject][]=texttofind

All properly url-encoded this becomes:
issues.json?f%5B%5D=subject&op%5Bsubject%5D=%7E&v%5Bsubject%5D%5B%5D=texttofind

I found this by creating a search-query in the GUI and examining the URL that was generated for that.

Again: this is undocumented and may change without notice in a future version but it solved my problem.

Updated by Matthias Schelling over 11 years ago Actions #5

+1
can confirm the solution by Jos Groot Lipman is working, looking for a documented way though...

Updated by Anonymous over 10 years ago Actions #6

+1 for this to be implemented as a regular functionality.

Updated by Stéphane Lavergne almost 8 years ago Actions #7

Not sure when it appeared, but the direct prefix form of the ~ operator example in note 4 works for me in Redmine 3.4.1:

issues.json?subject=~texttofind

…so I suppose this issue can be closed?

Updated by Stéphane Frath over 7 years ago Actions #8

For anyone looking for an answer: the % character works as wildcard in the subject text field
Tested on Redmine 4.0.4

Updated by Go MAEDA over 7 years ago Actions #9

  • Related to Defect #19786: '%' and '_' are treated as SQL wildcards in issue filter added

Updated by Go MAEDA over 5 years ago Actions #10

  • Related to Feature #35073: Escape values in LIKE statements to prevent injection of placeholders (_ or %) added

Updated by Go MAEDA about 5 years ago Actions #11

Stéphane Frath wrote:

For anyone looking for an answer: the % character works as wildcard in the subject text field
Tested on Redmine 4.0.4

The behavior is going to be fixed in the upcoming Redmine 5.0.0 (#35073). Instead, filtering by multiple keywords (AND search) will be available (#35764).

Updated by Go MAEDA over 3 years ago Actions #12

  • Related to Feature #38423: Regular expression support for string/text type filters added
Actions

Also available in: PDF Atom