プロジェクト

全般

プロフィール

Vote #73488

未完了

Filtering by issue subject with wildcard

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
REST API_32
対象バージョン:
-
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
32
version_id:
0
issue_org_id:
13347
author_id:
73559
assigned_to_id:
0
comments:
11
status_id:
1
tracker_id:
2
plus1:
4
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.


journals

+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:
<pre>
f[]=subject
&op[subject]=~
&v[subject][]=texttofind
</pre>
All properly url-encoded this becomes:
<pre>issues.json?f%5B%5D=subject&op%5Bsubject%5D=%7E&v%5Bsubject%5D%5B%5D=texttofind</pre>
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:

<pre>
issues.json?subject=~texttofind
</pre>

…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
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
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_issues

relates,Closed,19786,'%' and '_' are treated as SQL wildcards in issue filter
relates,Closed,35073,Escape values in LIKE statements to prevent injection of placeholders (_ or %)

Admin Redmine さんがほぼ4年前に更新

  • カテゴリREST API_32 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0