Edgewall Software

Ticket #4775 (new enhancement)

Opened 21 months ago

Last modified 5 months ago

Filtering tickets by multiple keywords

Reported by: wijister@… Owned by: cboos
Priority: normal Milestone: 0.12
Component: ticket system Version:
Severity: normal Keywords: ticket filter
Cc:

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@… 21 months ago.
Added support for multiple-keywords filtering - unfortunately breaks filtering JS
multiple_keywords_ticket_query_redone.diff (4.0 KB) - added by wijister@… 21 months ago.
Added support for multiple-keywords filtering

Change History

Changed 21 months ago by wijister@…

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

  Changed 21 months 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...

follow-up: ↓ 3   Changed 21 months 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.

in reply to: ↑ 2   Changed 21 months 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 21 months ago by wijister@…

Added support for multiple-keywords filtering

  Changed 5 months ago by cboos

  • owner changed from jonas to cboos
  • milestone changed from 0.11.2 to 0.12

Add/Change #4775 (Filtering tickets by multiple keywords)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cboos. Next status will be 'new'
The owner will change from cboos to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.