Apart from the type of searches explained in the previous chapter, JIRA also has a few advanced search options, which can be performed using the following three ways.
These above-mentioned three ways have been explained in detail below.
The user should consider the following points while performing any advanced search.
Advanced search uses structured queries to search for JIRA issues.
Search results displays in the Issue Navigator.
Search results can be exported to MS Excel and many other available formats.
Save and Subscribe features are available to advanced searches.
An advanced search uses the JIRA Query Language known as JQL.
A simple query in JQL consists of a field, operator, followed by one or more values or functions. For example, the following simple query will find all issues in the "WFT" project −
Project = "WFT"
JQL supports SQL like syntax such as ORDER BY, GROUP BY, ISNULL() functions, but JQL is not a Database Query Language.
A field reference means a word that represents the field name in the JIRA issue including the custom fields. The syntax is −
<field name> <operators like =,>, <> “values” or “functions”
The operator compares the value of the field with value presents at right side such that only true results are retrieved by query.
The following screenshot shows how to navigate the Search section.
If there is an existing search criterion, click on the New Filter button to reset the criteria. The following screenshot shows how to start with a new criteria −
Type the query using the Field, Operator and Values like issueKey = “WFT-107”.
There are other fields as well – Affected Version, Assignee, Attachments, Category, Comment, Component, Created, Creator, Description, Due, Environment, etc. As soon as the user starts typing, the auto-complete functionality helps to write in the defined format.
The following screenshot shows how to add Field Name criteria using advanced features.
Operator selection − The following screenshot shows how to select operators.
The next step is to enter the value and then click on the Search symbol. The following screenshot shows how to add values and search.
The following screenshot shows the search result based on criteria set.
Here, we will understand how to use a keyword reference and what its advantages are
A keyword in JQL −
List of Keywords −
Similar to field reference, as soon as the user starts typing, the auto-complete functionality helps to get the correct syntax. The following screenshot shows how to add keywords.
Click on the Search symbol and it will provide the search results. The following screenshot shows the result based on a criteria set.
Operators are used to compare values of the left side with the right side, such that only true results display as the search result.
Similar to the Field and the Keyword Reference, these operators can also be used to enhance the search results.