JQL Functions
...
Table of Contents |
---|
Syntax
...
|
...
datesBeyond
Code Block |
---|
...
datesBeyond(" |
...
Time_ |
...
Frame", " |
...
Items | Explanation |
---|---|
JQL: FieldValueMatches | Return all the issues whose specific field value matches the "Regex_Pattern" |
JQL Context | issue in/not in |
Arg: Field_Name | Support any text-based fields. i.e. "Summary", "Description", ' text field (single line)' and so on |
Arg: Regex_Pattern | Support any regular expression patterns |
JQL Example | 'issue in FieldValueMatches("summary", "[hm]at")' will return all the issues whose summary contains hat or mat |
Previous Status
...
Date_Field_Name_1", "Date_Field_Name_2") |
Items | ExplanationDescription |
---|---|
JQL: preStatusWasdatesBeyond | Return all the issues whose most recently previous status is status_A |
JQL: preStatusContainsAll | Return all the issues whose historical statuses (exclude current status) include status_A and status_B and status_C and ... and status_X |
JQL:preStatusContainsEither | Return all the issues whose most recently previous status is status_A or status_B or status_C or ... or status_Xtime difference between "Date_Field_Name_1" and "Date_Field_Name_2" is greater than or equal to "Time_Frame" |
JQL Context | issue in/not in |
Arg: statusTime_X | Support all JIRA workflow statuses |
JQL Example | Here's 4 example issues with their workflow transition history:
'issue in preStatusWas("Rejected")' will return issue 4 |
* Automating high volume queries may result in a slowdown in performance
...
Frame | Time frame can be w, d, h, m and separated by spaces.
Example: "1w 2d 3h 4m" |
Date_Field_Name_1&2 | Supports
and any other Date Picker custom fields |
JQL Example | issue in datesBeyond("1w", "Estimated Start", "Estimated End") |
datesWithin
Code Block |
---|
datesWithin("Time_Frame", "Date_Field_Name_1", "Date_Field_Name_2") |
...
Items | Description |
---|---|
datesWithin | Return all the issues whose time difference between "Date_Field_Name_1" ,and "Date_Field_Name_2" ) dateTimeWithin(is less than or equal to "Time_Frame" , "DateTime |
JQL Context | issue in/not in |
Time_Frame | Time frame can be w, d, h, m and separated by spaces.
Example: "1w 2d 3h 4m" |
Date_Field_Name_1&2 | Supports
and any other Date Picker custom fields |
JQL Example | issue in datesBeyond("1d", "Estimated Start", "Estimated End") |
dateTimeBeyond
Code Block |
---|
dateTimeBeyond("Time_Frame", "DateTime_Field_Name_1", "DateTime_Field_Name_2") |
Items | ExplanationDescription |
---|---|
JQL: datesWithindateTimeBeyond | Return all the issues whose time difference between "DateDateTime_Field_Name_1" and "DateDateTime_Field_Name_2" <= is greater than or equal to "Time_Frame" |
JQL : datesBeyondReturn all the issues whose time difference between "DateContext | issue in/not in |
Time_Frame | Time frame can be w, d, h, m and separated by spaces.
Example: "1w 2d 3h 4m" |
DateTime_Field_Name_1&2 | Supports
and "Date_Field_Name_2" >= any other DateTime Picker custom fields |
JQL Example | issue in dateTimeBeyond("1w", "created", "updated") |
dateTimeWithin
Code Block |
---|
dateTimeWithin("Time_Frame" |
...
JQL: dateTimeWithin
...
, "DateTime_Field_Name_1" |
...
, "DateTime_Field_Name_2" |
...
) |
Items | Description | ||
---|---|---|---|
dateTimeWithin | Return all the issues whose time difference between "DateTime_Field_Name_1" and "DateTime_Field_Name_2" >= is less than or equal to "Time_Frame" | ||
JQL Context | issue in/not in | ||
Arg: Time_Frame | Time frame can be w, d, h, m and separated by spaces.
Example: "1w 2d 3h 4m" | Arg: Date_Field_Name_1&2 | Support "due" : issue due dateand any other Date Picker custom fields |
Arg: DateTime_Field_Name_1&2 | SupportSupports
and any other DateTime Picker custom fields | ||
JQL Example | issue in dateTimeWithin("3d 8h", "created", "updated") |
epicTree
|
...
|
Items | Description |
---|---|
epicTree | Return all epics with those given epic issue keys, all issues linked to those epics and all sub-tasks of those issues linked to the epics
|
JQL Context | issue in/not in |
Arg: Epic_Issue_Key_N | Support all Jira Epic issue keys |
JQL Example | issue in epicTree("Data Storage", "System Config", "Security") |
FieldValueMatches
|
Items | Description |
---|---|
JQL: FieldValueMatches | Return all the issues whose specific field value matches the "Regex_Pattern" |
JQL Context | issue in, issue not in |
Field_Name | Support any text-based fields. i.e. "Summary", "Description", ' text field (single line)', etc. |
Regex_Pattern | Support any regular expression patterns |
JQL Example | issue in FieldValueMatches("summary", "[hm]at") will return all the issues whose summary contains hat or mat |
issueLinkType
|
Items | ExplanationDescription |
---|---|
JQL: issueLinkType | Return all the issues that have a certain type of issue link |
JQL Context | issue in/not in |
Arg: Issue_Link_Type | Support all issue link types. i.e. "blocks", "is blocked by", "duplicates", "relates to" and so onetc. |
JQL Example | 'issue in issueLinkType("clones")' will return all the issues whose issue link type is "clones" |
...
membersOfRole
|
Items | ExplanationDescription |
---|---|
JQL: membersOfRole | Return all the issues where a specified user is in a specific project role. |
JQL Context |
|
Arg: Project_Role | Support all JIRA Jira project roles |
JQL Example | assignee in membersOfRole("Administrators") |
Time-in-Status
Code Block | |
preStatusContainsAll
|
Items | Description |
---|---|
preStatusContainsAll | Return all the issues whose historical statuses (excluding current status) include status_A and status_B and status_C and ... and status_X |
JQL Context | issue in/not in |
status_X | Support all Jira workflow statuses |
JQL Example | Four example issues with their workflow transition history:
|
Note |
---|
Automating high volume queries may result in performance degradation of your Jira instance. It is recommend that the StatusWas JQL statements are used ad-hoc, and not for automation or high-volume workflow actions. |
preStatusContainsEither
|
Items | Description |
---|---|
preStatusContainsEither | Return all the issues whose most recently previous status is status_A or status_B or status_C or ... or status_X |
JQL Context | issue in/not in |
status_X | Support all Jira workflow statuses |
JQL Example | Four example issues with their workflow transition history:
|
Note |
---|
Automating high volume queries may result in performance degradation of your Jira instance. It is recommend that the StatusWas JQL statements are used ad-hoc, and not for automation or high-volume workflow actions. |
preStatusWas
|
Items | Description |
---|---|
preStatusWas | Return all the issues whose most recently previous status is status_A |
JQL Context | issue in/not in |
status_X | Support all Jira workflow statuses |
JQL Example | Four example issues with their workflow transition history:
'issue in preStatusWas("Rejected")' will return TK-4 |
Note |
---|
Automating high volume queries may result in performance degradation of your Jira instance. It is recommend that the StatusWas JQL statements are used ad-hoc, and not for automation or high-volume workflow actions. |
timeBeyond
|
Items | ExplanationDescription |
---|---|
JQL: timeWithintimeBeyond | Return all the issues whose sum of time spent in certain statuses <= is greater than or equal to "Time_Frame"
|
JQL Context | issue in/not in |
Time_Frame | Time frame can be w, d, h, m, s and separated by spaces.
Example: "1w 2d 3h 4m 5s" |
status_A&B&C | Support all Jira workflow statuses |
JQL Example | issue in timeBeyond("1d 2h 30s", "Open") |
timeWithin
|
Items | Description |
---|---|
timeWithin | Return all the issues whose sum of time spent in certain statuses >= is less than or equal to "Time_Frame"
|
JQL Context | issue in/not in |
Arg: Time_Frame | Time frame can be w, d, h, m, s and separated by spaces.
Example: "1w 2d 3h 4m 5s" |
Arg: status_A&B&C | Support all JIRA Jira workflow statuses |
JQL Example | |
Items | Explanation |
JQL: epicTree | Return all epics with those given epic issue keys, all issues linked to those epics and all sub-tasks of those issues linked to the epics
|
JQL Context | issue in/not in |
Arg: Epic_Issue_Key_N | Support all JIRA Epic issue keys |
JQL Example | issue in timeWithin("1h", "In Progress") issue in timeBeyond("1d 2h 30s", "Open") |
Linked-to-Epic
|
issue in epicTree("Data Storage", "System Config", "Security") |