Edgewall Software
Modify

Opened 18 years ago

Closed 15 years ago

Last modified 15 years ago

#4775 closed enhancement (fixed)

Filtering tickets by multiple keywords

Reported by: wijister@… Owned by: Remy Blank
Priority: normal Milestone: 0.12
Component: ticket system Version:
Severity: normal Keywords: ticket filter
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

It would be nice to be able to filter tickets specifying multiple keywords (all of which would have to be present).

I am well aware of #2647, but my idea is somewhat different. The nature of keywords field is very specific, in the way that it contains only space-separated words. Simply typing several keywords and hiting Enter is unmatched in elegance by any AND-linked filter (which would require 4 clicks at least, for every additional keyword).

This could be done by adding keyword-specific "contains all of" type to the drop down. Possibly even being the default option. Also this could be easier to implement than #2647 and could serve as a nice substitute until 0.12, at least.

Attachments (2)

multiple_keywords_ticket_query.diff (7.1 KB ) - added by wijister@… 18 years ago.
Added support for multiple-keywords filtering - unfortunately breaks filtering JS
multiple_keywords_ticket_query_redone.diff (4.0 KB ) - added by wijister@… 18 years ago.
Added support for multiple-keywords filtering

Download all attachments as: .zip

Change History (9)

by wijister@…, 18 years ago

Added support for multiple-keywords filtering - unfortunately breaks filtering JS

comment:1 by wijister@…, 18 years ago

Added the patch.

I still can't figure out how on earth the filtering JS gets broken. It behaves weirdly in Konqueror and refuses to work at all in FF.

Any help or hint where to start would be appreciated…

comment:2 by Christian Boos, 18 years ago

Milestone: 0.11

Well, I think we can go one step further. Keywords being keywords, you don't expect to match a particular sequence of words when entering multiple keywords in that field, so I think it's safe to assume that if there are multiple keywords, then we're looking for all of them (the any of them query being available by using an additional "or" filter).

Tentatively scheduling for 0.11.

in reply to:  2 comment:3 by anonymous, 18 years ago

Replying to cboos:

Well, I think we can go one step further. Keywords being keywords, you don't expect to match a particular sequence of words when entering multiple keywords in that field, so I think it's safe to assume that if there are multiple keywords, then we're looking for all of them (the any of them query being available by using an additional "or" filter).

Tentatively scheduling for 0.11.

I agree.

I've redone the patch so that the multiple word matching will trigger on the condition that:

  • we are filtering by keywords
  • we are using the 'contains' matching mode

An additional matching mode is probably a bit overdo in this case.

by wijister@…, 18 years ago

Added support for multiple-keywords filtering

comment:4 by Christian Boos, 16 years ago

Milestone: 0.11.20.12
Owner: changed from Jonas Borgström to Christian Boos

comment:5 by Christian Boos, 15 years ago

#8329 was closed as duplicate. It was requesting a slightly more powerful feature: the ability to look for combined AND terms and AND NOT terms. I suggested using - for negating, as is common in search interfaces.

Example: when looking for tickets having keyword implemented but neither pass nor fail, one would write: implemented -pass -fail.

comment:6 by Remy Blank, 15 years ago

Resolution: fixed
Status: newclosed

I have reimplemented the second patch for current trunk in [8509], as it didn't apply cleanly anymore. I have also added the negation functionality mentioned in comment:5.

comment:7 by Remy Blank, 15 years ago

Owner: changed from Christian Boos to Remy Blank

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Remy Blank.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Remy Blank to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.