[%# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # # This Source Code Form is "Incompatible With Secondary Licenses", as # defined by the Mozilla Public License, v. 2.0. #%] [% INCLUDE global/header.html.tmpl title = "$terms.Bugzilla QuickSearch", style_urls = ['skins/standard/page.css'] onload = 'document.forms[\'f\'].quicksearch.focus()' %] [% USE Bugzilla %]
You may also want to read up on the Advanced Features.
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 %]Field | Field Name(s) For Search |
---|---|
[% desc FILTER html %] | [% FOREACH nickname = field_table.$desc %] [% nickname FILTER html %] [% ", " UNLESS loop.last %] [% END %] |
OR has higher precedence than AND; AND is the top level operation. For example:
Searching for url|location bar|field -focus means (url OR location) AND (bar OR field) AND (NOT focus)
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:
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 |