Feature #13347
open
Filtering by issue subject with wildcard
Added by Philipp Zabel over 11 years ago.
Updated about 3 years ago.
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.
+1. This would be great to have.
+1
I am wondering this is not yet possible... :-(
I'm also interested in this feature.
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.
+1
can confirm the solution by Jos Groot Lipman is working, looking for a documented way though...
+1 for this to be implemented as a regular functionality.
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?
For anyone looking for an answer: the % character works as wildcard in the subject text field
Tested on Redmine 4.0.4
- Related to Defect #19786: '%' and '_' are treated as SQL wildcards in issue filter added
- Related to Feature #35073: Escape values in LIKE statements to prevent injection of placeholders (_ or %) added
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).
- Related to Feature #38423: Regular expression support for string/text type filters added
Also available in: Atom
PDF