Bug 584940

Summary: 2.8: Quicksearch custom fields and other enhancements
Product: [Community] Bugzilla Reporter: David Lawrence <dkl>
Component: Query/Bug ListAssignee: David Lawrence <dkl>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 3.4CC: mharvey, mkanat, nelhawar
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-27 21:34:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 583097    
Attachments:
Description Flags
Patch to allow simple keyword search of custom text fields (v1) dkl: review? (nelhawar)

Description David Lawrence 2010-04-22 18:55:44 UTC
JIRA Requirement 2.8:

Currently the bugzilla Bugzilla::Search::QuickSearch module which constructs the necessary SQL for
performing searches on the Bugzilla database, only searchs the following fields for text keywords:

 * Summary
 * Keywords
 * Product
 * Component
 * Status Whiteboard. 
 * If a word looks like a part of a URL, that field is included in the search, too. 

You can however search most of the core Bugzilla fields (status, version, flags, groups, severity, etc.) by using field:string formatted search terms. 
Custom fields are not yet searchable from quicksearch.

Also certain feature requests made in Bugzilla should be considered as well for inclusion such as showing previous quick search text in the field in buglist.cgi, etc.

Proposed Solution(s): 

Update Bugzilla::Search::QuickSearch to also include text type custom fields in the basic keyword search. Also to include the ability
to search on customfield:value search pairs as well similar to the other bug fields.

Comment 1 David Lawrence 2010-05-07 17:59:03 UTC
Created attachment 412414 [details]
Patch to allow simple keyword search of custom text fields (v1)

Patch to Bugzilla/Search/QuickSearch.pm that allows searching of keywords in custom fields that are either free text or text area types.

Please review
Dave

Comment 2 Noura El hawary 2010-05-10 10:53:26 UTC
Hi Dave,

I applied your patch to bz-web1, trying to test it, but it is not working for me,unless i am doing something working, always getting the error:


Field cf_environment is not a known field. The legal field names are listed here. 

for example when I search for "cf_environment:test"

and then when i click on listed here it brings a list of all possible fields, maybe a good idea to add this list the text field types of the custom fields.

Thanks,
Noura

Comment 3 Max Kanat-Alexander 2010-05-26 21:48:20 UTC
Note that Bugzilla 3.6 already fully supports quicksearching of custom fields, in addition to various other nice quicksearch enhancements (including greatly improved documentation).

Comment 4 David Lawrence 2010-05-27 21:34:54 UTC
Yeah noticed that now after doing the changes for 3.4. We can scratch this requirement.