On this page:
An advanced search allows you to use structured queries to search for JIRA issues. Your search results will be displayed in the Issue Navigator, where you can export them to MS Excel and many other formats. You can also save and subscribe to your advanced searches if you wish.
A query consists of a field, followed by an operator, followed by a value or function. For example, the following query will find all issues in the "TEST" project:
project = "TEST" |
(This example uses the Project field, the EQUALS operator, and the value "TEST".)
Note that it is not possible to compare two fields.
When you perform an advanced search, you are using the JIRA Query Language (JQL). JQL gives you some SQL-like statements, such as Advanced Searching and NULL. It is not, however, a database query language; for example, JQL does not have a SELECT statement.

ANDUsed to combine multiple statements, allowing you to refine your search. Note that you can use parentheses to control the order in which statements are executed. Examples
ORUsed to combine multiple statements, allowing you to expand your search. Note that you can use parentheses to control the order in which statements are executed. (Note: also see IN, which can be a more convenient way to search for multiple values of a field.) Examples
NOTUsed to negate individual operators or entire statements of a query, allowing you to refine your search. Note that you can use parentheses to control the order in which statements are executed. (Note: also see NOT_EQUALS ("!="), DOES_NOT_CONTAIN ("!~"), NOT_IN and IS_NOT.) Examples
EMPTYUsed to search for issues where a given field does not have a value. See also NULL. Note that EMPTY can only be used with fields that support the IS and IS_NOT operators. To see a field's supported operators, check the individual field reference. Examples
NULLUsed to search for issues where a given field does not have a value. See also EMPTY. Note that NULL can only be used with fields that support the IS and IS_NOT operators. To see a field's supported operators, check the individual field reference. Examples
ORDER BYUsed to specify the fields by whose values the search results will be sorted. By default, the field's own sorting order will be used. You can override this by specifying ascending order (" Examples
|
EQUALS: =The " To find issues where the value of a specified field exactly matches multiple values, use multiple " Examples
NOT EQUALS: !=The " Note that typing The " Examples
GREATER THAN: >The " Note that the " Examples
GREATER THAN EQUALS: >=The " Note that the " Examples
LESS THAN: <The " Note that the " Examples
LESS THAN EQUALS: <=The " Note that the " Examples
INThe " Using " Examples
NOT INThe " Using " The " Examples
CONTAINS: ~The " Note: when using the " Examples
DOES NOT CONTAIN: !~The " Note: when using the " Examples
ISThe " Note that not all fields are compatible with this operator; see the individual field reference for details. Examples
IS NOTThe " Note that not all fields are compatible with this operator; see the individual field reference for details. Examples
|
Affected VersionSearch for issues that are assigned to a particular Affects Version(s). You can search by version name or version ID (i.e. the number that JIRA automatically allocates to a version).
Note: this field supports auto-complete. Syntax
Field TypeVERSION Supported OperatorsNote that the comparison operators (e.g. ">") use the version order that has been set up by your project administrator, not a numeric or alphabetic order. Supported FunctionsExamples
AssigneeSearch for issues that are assigned to a particular user. You can search by the user's Full Name, ID or Email Address. Note: this field supports auto-complete. Syntax
Field TypeUSER Supported OperatorsSupported FunctionsExamples
CategorySearch for issues that belong to projects in a particular Category. Note: this field supports auto-complete. Syntax
Field TypeCATEGORY Supported OperatorsSupported Functionsn/a Examples
CommentSearch for issues that have a Comment which contains particular text. JIRA text-search syntax can be used. Note: this field does not support auto-complete. Syntax
Field TypeTEXT Supported OperatorsSupported Functionsn/a Examples
ComponentSearch for issues that belong to a particular component(s) of a project. You can search by component name or component ID (i.e. the number that JIRA automatically allocates to a component).
Note: this field supports auto-complete. Syntax
Field TypeCOMPONENT Supported OperatorsSupported FunctionsWhen used with the IN and NOT_IN operators, Examples
CreatedSearch for issues that were created on, before or after a particular date (or date range). Note: this field does not support auto-complete. Syntax
Alias:
Field TypeDATE Supported OperatorsSupported FunctionsExamples
Custom FieldOnly applicable if your JIRA administrator has created one or more Custom Fields. Search for issues where a particular Custom Field has a particular value. You can search by Custom Field name or Custom Field ID (i.e. the number that JIRA automatically allocates to an Custom Field).
Note:
Syntax
Alias:
Field TypeDepends on the Custom Field's configuration Supported OperatorsDifferent types of Custom Fields support different operators. For the default Custom Field Types, the following operators are supported:
Supported FunctionsDifferent types of Custom Fields support different functions. For the default Custom Field Types, the following functions are supported:
Examples
DescriptionSearch for issues where the Description contains particular text. JIRA text-search syntax can be used. Note: this field does not support auto-complete. Syntax
Field TypeTEXT Supported OperatorsSupported Functionsn/a Examples
DueSearch for issues that were due on, before or after a particular date (or date range). Note that Due Date relates to the date only (not to the time). Note: this field does not support auto-complete. Syntax
Alias:
Field TypeDATE Supported OperatorsSupported FunctionsExamples
EnvironmentSearch for issues where the Environment contains particular text. JIRA text-search syntax can be used. Note: this field does not support auto-complete. Syntax
Field TypeTEXT Supported OperatorsSupported Functionsn/a Examples
FilterYou can use a saved filter to narrow your search. You can search by filter name or filter ID (i.e. the number that JIRA automatically allocates to a saved filter).
Note:
Field TypeFILTER Supported OperatorsSupported Functionsn/a Examples
Fix VersionSearch for issues that are assigned to a particular Fix Version. You can search by version name or version ID (i.e. the number that JIRA automatically allocates to a version).
Note: this field supports auto-complete. Syntax
Field TypeVERSION Supported OperatorsNote that the comparison operators (e.g. ">") use the version order that has been set up by your project administrator, not a numeric or alphabetic order. Supported FunctionsExamples
Issue KeySearch for issues with a particular Issue Key or Issue ID (i.e. the number that JIRA automatically allocates to an Issue). Note: this field does not support auto-complete. Syntax
Aliases:
Field TypeISSUE Supported OperatorsSupported FunctionsWhen used with the IN or NOT_IN operators, Examples
LevelOnly available if Issue Level Security has been enabled by your JIRA administrator. Search for issues with a particular Security Level. You can search by Issue Security Level name or Issue Security Level ID (i.e. the number that JIRA automatically allocates to an Issue Security Level).
Note: this field supports auto-complete. Syntax
Field TypeSECURITY LEVEL Supported OperatorsSupported Functionsn/a Examples
Original EstimateOnly available if time-tracking has been enabled by your JIRA administrator. Search for issues where the Original Estimate is set to a particular value (i.e. a number, not a date or date range). Use "w", "d", "h" and "m" to specify weeks, days, hours or minutes. Note: this field does not support auto-complete. Syntax
Alias:
Field TypeDURATION Supported OperatorsSupported Functionsn/a Examples
ParentOnly available if sub-tasks have been enabled by your JIRA administrator. Search for all sub-tasks of a particular issue. You can search by Issue Key or by Issue ID (i.e. the number that JIRA automatically allocates to an Issue). Note: this field does not support auto-complete. Syntax
Field TypeISSUE Supported OperatorsSupported Functionsn/a Examples
PrioritySearch for issues with a particular Priority. You can search by Priority name or Priority ID (i.e. the number that JIRA automatically allocates to a Priority).
Note: this field supports auto-complete. Syntax
Field TypePRIORITY Supported OperatorsSupported Functionsn/a Examples
ProjectSearch for issues that belong to a particular Project You can search by Project Name, by Project Key or by Project ID (i.e. the number that JIRA automatically allocates to a project). Note: this field supports auto-complete. Syntax
Field TypePROJECT Supported OperatorsSupported FunctionsWhen used with the IN and NOT_IN operators, Examples
Remaining EstimateOnly available if time-tracking has been enabled by your JIRA administrator. Search for issues where the Remaining Estimate is set to a particular value (i.e. a number, not a date or date range). Use "w", "d", "h" and "m" to specify weeks, days, hours or minutes. Note: this field does not support auto-complete. Syntax
Alias:
Field TypeDURATION Supported OperatorsSupported Functionsn/a Examples
ReporterSearch for issues that were reported by (i.e. created by) a particular user. You can search by the user's Full Name, ID or Email Address. Note: this field supports auto-complete. Syntax
Field TypeUSER Supported OperatorsSupported FunctionsExamples
ResolutionSearch for issues that have a particular Resolution You can search by Resolution name or Resolution ID (i.e. the number that JIRA automatically allocates to a Resolution).
Note: this field supports auto-complete. Syntax
Field TypeRESOLUTION Supported OperatorsSupported Functionsn/a Examples
ResolvedSearch for issues that were resolved on, before or after a particular date (or date range). Note: this field does not support auto-complete. Syntax
Alias:
Field TypeDATE Supported OperatorsSupported FunctionsWhen used with the EQUALS, NOT_EQUALS, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN or LESS_THAN_EQUALS operators,
Examples
StatusSearch for issues that have a particular Status. You can search by Status name or Status ID (i.e. the number that JIRA automatically allocates to a Status).
Note: this field supports auto-complete. Syntax
Field TypeSTATUS Supported OperatorsSupported Functionsn/a Examples
SummarySearch for issues where the Summary contains particular text. JIRA text-search syntax can be used. Note: this field does not support auto-complete. Syntax
Field TypeTEXT Supported OperatorsSupported Functionsn/a Examples
TextThis is a "master-field" that allows you to search all text fields, i.e.: Note: The Syntax
Field TypeTEXT Supported OperatorsSupported Functionsn/a Examples
TypeSearch for issues that have a particular Issue Type. You can search by Issue Type name or Issue Type ID (i.e. the number that JIRA automatically allocates to an Issue Type).
Note: this field supports auto-complete. Syntax
Alias:
Field TypeISSUE_TYPE Supported OperatorsSupported Functionsn/a Examples
Time SpentOnly available if time-tracking has been enabled by your JIRA administrator. Search for issues where the Time Spent is set to a particular value (i.e. a number, not a date or date range). Use "w", "d", "h" and "m" to specify weeks, days, hours or minutes. Note: this field does not support auto-complete. Syntax
Field TypeDURATION Supported OperatorsSupported Functionsn/a Examples
UpdatedSearch for issues that were last updated on, before or after a particular date (or date range). Note: this field does not support auto-complete. Syntax
Alias:
Field TypeDATE Supported OperatorsSupported FunctionsExamples
VoterSearch for issues for which a particular user has voted. You can search by the user's Full Name, ID or Email Address. Note that you can only find issues for which you have the "View Voters and Watchers" permission, unless you are searching for your own votes. See also votedIssues. Note: this field supports auto-complete. Syntax
Field TypeUSER Supported OperatorsSupported FunctionsExamples
VotesSearch for issues with a specified number of votes. Note: this field does not support auto-complete. Syntax
Field TypeNUMBER Supported OperatorsSupported Functionsn/a Examples
WatcherSearch for issues that a particular user is watching. You can search by the user's Full Name, ID or Email Address. Note that you can only find issues for which you have the "View Voters and Watchers" permission, unless you are searching for issues where you are the watcher. See also watchedIssues. Note: this field supports auto-complete. Syntax
Field TypeUSER Supported OperatorsSupported FunctionsExamples
Work RatioOnly available if time-tracking has been enabled by your JIRA administrator. Search for issues where the Work Ratio has a particular value. Work Ratio is calculated as follows: workRatio = timeSpent / originalEstimate) x 100 Note: this field does not support auto-complete. Syntax
Field TypeNUMBER Supported OperatorsSupported Functionsn/a Examples
|
cascadeOption()Search for issues that match the selected values of a 'cascading select' custom field. The parentOption parameter matches against the first tier of options in the cascading select field. The childOption parameter matches against the second tier of options in the cascading select field, and is optional. The keyword Syntax
or
Supported Fields
Supported OperatorsExamples
componentsLeadByUser()Find issues in components that are lead by a specific user. You can optionally specify a user, or if the user is omitted the current user (i.e. you) will be used. Note that if you are not logged in to JIRA, a user must be specified. Syntax
or
Supported FieldsSupported OperatorsExamples
currentLogin()Perform searches based on the time at which the current user's session began. See also lastLogin. Syntax
Supported FieldsSupported OperatorsExamples
currentUser()Perform searches based on the currently logged-in user. Note that this function can only be used by logged-in users. So if you are creating a saved filter that you expect to be used by anonymous users, do not use this function. Syntax
Supported FieldsSupported OperatorsExamples
issueHistory()Find issues that you have recently viewed, i.e. issues that are in the 'Recent Issues' section of the 'Issues' drop-down menu. Note:
Syntax
Supported FieldsSupported OperatorsExamples
lastLogin()Perform searches based on the time at which the current user's previous session began. See also currentLogin. Syntax
Supported FieldsSupported OperatorsExamples
linkedIssues()Perform searches based on issues which are linked to a specified issue. You can optionally restrict the search to links of a particular type. Note that LinkType is case-sensitive. Syntax
or
Supported FieldsSupported OperatorsExamples
membersOf()Perform searches based on the members of a particular group. Syntax
Supported FieldsSupported OperatorsExamples
now()Perform searches based on the current time. Syntax
Supported FieldsSupported OperatorsExamples
projectsLeadByUser()Find issues in projects that are lead by a specific user. You can optionally specify a user, or if the user is omitted the current user will be used. Note that if you are not logged in to JIRA, a user must be specified. Syntax
or
Supported FieldsSupported OperatorsExamples
projectsWhereUserHasPermission()Find issues in projects where you have a specific permission. Note that this function is only available if you are logged in to JIRA. Syntax
For the Supported FieldsSupported OperatorsExamples
projectsWhereUserHasRole()Find issues in projects where you have a specific role. Note that this function is only available if you are logged in to JIRA. Syntax
Supported FieldsSupported OperatorsExamples
releasedVersions()Perform searches based on the released versions (i.e. versions that your JIRA administrator has released) of a specified project. You can also search on the released versions of all projects, by omitting the project parameter. Syntax
or
Supported FieldsSupported OperatorsExamples
standardIssueTypes()Perform searches based on "standard" Issue Types, that is, search for issues which are not sub-tasks. Syntax
Supported FieldsSupported OperatorsExamples
subtaskIssueTypes()Perform searches based on issues which are sub-tasks. Syntax
Supported FieldsSupported OperatorsExamples
unreleasedVersions()Perform searches based on the unreleased versions (i.e. versions that your JIRA administrator has not yet released) of a specified project. You can also search on the unreleased versions of all projects, by omitting the project parameter. Syntax
or
Supported FieldsSupported OperatorsExamples
votedIssues()Perform searches based on issues for which you have voted. Also see the Voter field. Note that this function can only be used by logged-in users. Syntax
Supported FieldsSupported OperatorsExamples
watchedIssues()Perform searches based on issues which you are watching. Also see the Watcher field. Note that this function can only be used by logged-in users. Syntax
Supported FieldsSupported OperatorsExamples
Supported FieldsSupported OperatorsExamples
|
You can use parentheses in complex JQL statements to enforce the precedence of operators.
For example, if you want to find all resolved issues in the SysAdmin project as well as all issues (any status, any project) currently assigned to the system administrator (bobsmith), you can use parentheses to enforce the precedence of the boolean operators in your query, i.e.:
(status=resolved AND project=SysAdmin) OR assignee=bobsmith |
Note that if you do not use parentheses, the statement will be evaluated left-to-right.
You can also use parentheses to group clauses, so that you can apply the NOT operator to the group.
You can use Lucene's text-searching features when performing searches on the following fields, using the CONTAINS operator:
For details, please see the page on Performing Text Searches, which includes the following sections:
As you type your query, JIRA will recognise the context and offer a list of "auto-complete" suggestions as follows:
The list of auto-complete suggestions is displayed alphabetically and includes the first 15 matches. Note that auto-complete suggestions are not offered for function parameters.
Auto-complete suggestions are not offered for all fields. Check the fields reference to see which fields support auto-complete. If you type a space at the start of your query......JIRA will offer a list of all available fields, e.g.:
If you type one or more characters......JIRA will offer a list of matching fields, e.g.:
If you type a field then a space......JIRA will offer a list of valid operators, e.g.:
If you type a field, then an operator, then a space......JIRA will offer a list of valid values, e.g.:
If you type a field, then an operator, then one or more characters......JIRA will offer a list of valid values (if your field supports this) and valid functions for the field/operator combination, e.g.:
|
In general, a query created using 'Simple Search' will be able to be translated to 'Advanced Search' (i.e. JQL), and back again.
However, a query created using 'Advanced Search' may not be able to be translated to 'Simple Search', particular if:
project in (A, B))(project = JRA OR project = CONF) is equivalent to this query:(project in (JRA, CONF)), only the second query will be translated.fixVersion = "4.0", without the AND project=JRA). This is especially tricky with custom fields since they can be configured on a Project/Issue Type basis. The general rule of thumb is
JQL has a list of reserved characters:
" ")"+""."","";""?""|""*""/""%""^""$""#""@""[""]"If you wish to use these characters in queries, you need to:
') or double quote-marks (")); andFor example:
summary ~ "\\[example\\]" |
Note that there is an additional list of reserved characters for Text Searches, which applies to the following fields:
.
JQL has a list of reserved words. These words need to be surrounded by quote-marks if you wish to use them in queries:
"abort", "access", "add", "after", "alias", "all", "alter", "and", "any", "as", "asc",
"audit", "avg", "before", "begin", "between", "boolean", "break", "by", "byte", "catch", "cf",
"char", "character", "check", "checkpoint", "collate", "collation", "column", "commit", "connect", "continue",
"count", "create", "current", "date", "decimal", "declare", "decrement", "default", "defaults", "define", "delete",
"delimiter", "desc", "difference", "distinct", "divide", "do", "double", "drop", "else", "empty", "encoding",
"end", "equals", "escape", "exclusive", "exec", "execute", "exists", "explain", "false", "fetch", "file", "field",
"first", "float", "for", "from", "function", "go", "goto", "grant", "greater", "group", "having",
"identified", "if", "immediate", "in", "increment", "index", "initial", "inner", "inout", "input", "insert",
"int", "integer", "intersect", "intersection", "into", "is", "isempty", "isnull", "join", "last", "left",
"less", "like", "limit", "lock", "long", "max", "min", "minus", "mode", "modify",
"modulo", "more", "multiply", "next", "noaudit", "not", "notin", "nowait", "null", "number", "object",
"of", "on", "option", "or", "order", "outer", "output", "power", "previous", "prior", "privileges",
"public", "raise", "raw", "remainder", "rename", "resource", "return", "returns", "revoke", "right", "row",
"rowid", "rownum", "rows", "select", "session", "set", "share", "size", "sqrt", "start", "strict",
"string", "subtract", "sum", "synonym", "table", "then", "to", "trans", "transaction", "trigger", "true",
"uid", "union", "unique", "update", "user", "validate", "values", "view", "when", "whenever", "where",
"while", "with"
You can use either single quote-marks ( |
(Note for JIRA administrators: this list is hard coded in the JqlStringSupportImpl.java file.)
Note that there is an additional list of reserved words for Text Searches, which applies to the following fields:
.