Justinbyrne - JQL Jira Query Language
Justinbyrne - JQL Jira Query Language
Justinbyrne - JQL Jira Query Language
JIRA 2 Example Clause project = TEST AND assignee in Affected version Filter Sprint
(currentuser())
Attachments Fix version Status
Breakdown
Comment Issue key Summary
Field project
Component Labels Text
Operator =
Created Last viewed Time spent
Value TEST Creator Priority Voter
Values & Functions TEST AND assignee = currentuser()
Description Project Watcher
A simple query in JQL (also known as a 'clause') consists of a field, Due Reporter custom field
followed by an operator, followed by one or more values or functions. For
A field in JQL is a word that represents a Jira field (or a custom field that
example:
has already been defined in Jira).
Sorting Ordering your data such that the most critical set of data is >= <=
listed first. ~ !~
Part of a good query is knowing how to get data out of JIRA. The other in not in
part is knowing how to engage your team and your customers with the
is is not
result. Let's start with two concepts that are critical to effective data
presentation. was was not
changed
startOfDay/Week/Month/Year currentLogin() issueHistory() Replace single character with Add ~ to the end of a single term
? e.g. roam~
endOfDay/Week/Month/Year currentUser() openSprints()
e.g. te?t
lastLogin() watchedIssues()
Replace multiple characters
now() myApproval() with
A function performs a calculation on either specific Jira data or the e.g. text ~ '"Atlassian jira"~10'
function's content in parentheses, such that only true results are retrieved
by the function, and then again by the clause in which the function is used. Word stemming
* ]
When using these common characters or words in queries, you need to:
2. If you are searching a text eld and the character is on the list of
reserved
characters or words, precede them with two backslashes \\