Write advanced JQL queries with functions and multiple clauses
By the end of this lesson, you'll be able to:
- Use common functions in JQL queries
- Find work items using exact dates, date functions, and calendar functions
- Find work items using words or phrases in text-based fields
- Write JQL queries with multiple clauses using parentheses
What are functions?
You can see a list of all JQL functions in Atlassian Documentation.
We're updating terminology in Jira, moving from "issue" to "work item", and "project" to "space".
As we roll out these changes, some JQL entries using the new terms may not work yet. If you come across this, try using the old term instead.
There are no changes to existing JQL queries.
Use date functions
Use calendar functions
Jira will use your account’s time zone to inform the search.
Use increments with calendar functions
Search with text-based fields
- Contains ~
- Does not contain !~
- Is
- Not
Specify exact and fuzzy matches
You'll always need to use quotation marks for text searches with more than one word and for certain words like “a,” “an,” “any,” and “are.” Jira will show an error message when these words aren’t in quotes.
Search in any text field
The text value is non-case-sensitive, meaning “CRASH” and “crash” return the same results.
Use EMPTY to find blank text fields
Search with multiple clauses
In this example, it’s important that you use OR, not AND, because work items can only be in one space, not multiple.