[%# The contents of this file are subject to the Mozilla Public # License Version 1.1 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.mozilla.org/MPL/ # # Software distributed under the License is distributed on an "AS # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or # implied. See the License for the specific language governing # rights and limitations under the License. # # The Original Code is the Bugzilla Bug Tracking System. # # The Initial Developer of the Original Code is Everything Solved, Inc. # Portions created by the Initial Developer are Copyright (C) 2009 # the Initial Developer. All Rights Reserved. # # Contributor(s): # Max Kanat-Alexander #%] [% PROCESS "global/field-descs.none.tmpl" %] [% INCLUDE global/header.html.tmpl title = "$terms.Bugzilla QuickSearch", style_urls = ['skins/standard/page.css'] onload = 'document.forms[\'f\'].quicksearch.focus()' %] [% USE Bugzilla %]

Type in one or more words (or pieces of words) to search for:

The Basics

You may also want to read up on the Advanced Features.

Fields You Can Search On

You can specify any of these fields like field:value in the search box, to search on them. You can also abbreviate the field name, as long as your abbreviation matches only one field name. So, for example, searching on stat:VERIFIED will find all [%+ terms.bugs %] in the VERIFIED status. Some fields have multiple names, and you can use any of those names to search for them.

[% IF Bugzilla.active_custom_fields.size %] [% SET first_field = Bugzilla.active_custom_fields.0 %]

For custom fields, they can be used and abbreviated based on the part of their name after the cf_ if you'd like, in addition to their standard name starting with cf_. So for example, [% first_field.name FILTER html %] can be referred to as [% first_field.name.replace('^cf_') FILTER html %], also. However, if this causes a conflict between the standard [%+ terms.Bugzilla %] field names and the custom field names, the standard field names always take precedence.

[% END %] [% SET field_table = {} %] [% FOREACH field = quicksearch_field_names.keys %] [% description = field_descs.$field %] [% field_table.$description = quicksearch_field_names.${field} %] [% END %] [% FOREACH desc = field_table.keys.sort %] [% END %]
Field Field Name(s) For Search
[% desc FILTER html %] [% FOREACH nickname = field_table.$desc %] [% nickname FILTER html %] [% ",  " UNLESS loop.last %] [% END %]

Advanced Features

Advanced Shortcuts

In addition to using field names to search specific fields, there are certain characters or words that you can use as a "shortcut" for searching certain fields:

[% IF use_keywords %] [% END %] [% SET key = "flagtypes.name" %] [% IF Param('usestatuswhiteboard') %] [% END %]
Field Shortcut(s)
[% field_descs.bug_status FILTER html %] Make the first word of your search the name of any status, or even an abbreviation of any status, and [% terms.bugs %] in that status will be searched. ALL is a special shortcut that means "all statuses". OPEN is a special shortcut that means "all open statuses".
[% field_descs.resolution FILTER html %] Make the first word of your search the name of any resolution, or even an abbreviation of any resolution, and [%+ terms.bugs %] with that resolution will be searched. For example, making FIX the first word of your search will find all [%+ terms.bugs %] with a resolution of FIXED .
[% field_descs.priority FILTER html %] "P1" (as a word anywhere in the search) means "find [% terms.bugs %] with the highest priority. "P2" means the second-highest priority, and so on.

Searching for "P1-3" will find [% terms.bugs %] in any of the three highest priorities, and so on.

[% field_descs.assigned_to FILTER html %] @value
[% field_descs.product FILTER html %] or [%+ field_descs.component FILTER html %] :value
[% field_descs.keywords FILTER html %] !value
[% field_descs.$key FILTER html %] flag?requestee
[% field_descs.longdesc FILTER html %] or [% field_descs.short_desc FILTER html %] #value
[% field_descs.short_desc FILTER html %] or [% field_descs.status_whiteboard FILTER html %] [value
[% PROCESS global/footer.html.tmpl %]