Edgewall Software
Modify

Ticket #4775 (closed enhancement: fixed)

Opened 5 years ago

Last modified 2 years ago

Filtering tickets by multiple keywords

Reported by: wijister@… Owned by: rblank
Priority: normal Milestone: 0.12
Component: ticket system Version:
Severity: normal Keywords: ticket filter
Cc:
Release Notes:
API 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

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

Download all attachments as: .zip

Change History

Changed 5 years ago by wijister@…

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

comment:1 Changed 5 years ago by wijister@…

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 follow-up: Changed 5 years ago by cboos

  • Milestone set to 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.

comment:3 in reply to: ↑ 2 Changed 5 years ago by anonymous

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.

Changed 5 years ago by wijister@…

Added support for multiple-keywords filtering

comment:4 Changed 4 years ago by cboos

  • Milestone changed from 0.11.2 to 0.12
  • Owner changed from jonas to cboos

comment:5 Changed 3 years ago by cboos

#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 Changed 2 years ago by rblank

  • Resolution set to fixed
  • Status changed from new to closed

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 Changed 2 years ago by rblank

  • Owner changed from cboos to rblank
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
to The owner will be changed from rblank. Next status will be 'closed'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.