Project

General

Profile

Actions

Feature #31879

closed

"starts with" and "ends with" filter operators for string values

Feature #31879: "starts with" and "ends with" filter operators for string values

Added by Go MAEDA over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues filter
Target version:
Resolution:
Fixed

Description

I propose adding "start with" and "end with" operators.

Currently, issues filter supports "contains", "doesn't contain", "none", and "any" operators for string values but does not support "start with" and "end with".

These two operators should increase the flexibility of issues filter. For example, you can extract issues which have some prefix or suffix in the subject.


Files


Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #3040: Extend filter on subject fieldClosedActions

Updated by Go MAEDA over 7 years ago Actions #1

Updated by Yuichi HARADA about 7 years ago Actions #2

I added "starts with" and "ends with" filter operators. These filter operator symbols mimics the CSS selectors.
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#Syntax
  • starts with : ^=
  • ends with : $=

I attached a patch.

Updated by Go MAEDA about 7 years ago Actions #3

  • Target version set to Candidate for next major release

Updated by Marius BĂLTEANU about 7 years ago Actions #4

Yuichi HARADA wrote:

I added "starts with" and "ends with" filter operators. These filter operator symbols mimics the CSS selectors.
https://developer.mozilla.org/en-US/docs/Web/CSS/Attribute_selectors#Syntax
  • starts with : ^=
  • ends with : $=

I attached a patch.

Why not just ^/$ which are used in regex syntax or Lucene syntax? Using CSS selector syntax for text searching is not common.

Updated by Go MAEDA about 7 years ago Actions #5

Marius BALTEANU wrote:

Why not just ^/$ which are used in regex syntax or Lucene syntax? Using CSS selector syntax for text searching is not common.

Nice idea. I have updated the patch.

Updated by Go MAEDA about 7 years ago Actions #6

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version changed from Candidate for next major release to 4.1.0
  • Resolution set to Fixed

Committed the patch. Thank you for improving Redmine.

Updated by Yuichi HARADA about 7 years ago Actions #7

I added "starts with" and "ends with" filter operators to File filter, but didn't create an implementation.
I created a patch.

Updated by Go MAEDA about 7 years ago Actions #8

  • Status changed from Closed to Reopened

Updated by Go MAEDA about 7 years ago Actions #9

  • Status changed from Reopened to Closed

Yuichi HARADA wrote:

I added "starts with" and "ends with" filter operators to File filter, but didn't create an implementation.

Committed the fix in r18570. Thank you.

Actions

Also available in: PDF Atom