JQL query
This function returns the issue list of issues returned by the specified JQL query. Visibility restrictions (permissions and issue security) might apply. By default this query will be run as the current user.
We suggest using this function for performance reasons when the number of issues to be retrieved or filtered is very high (e.g. all issues in a project or in status) instead of functions like:
issuesFromJQL(jqlQuery) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns an issue list with all issues that are in status "Open" or "Done". |
|
Bash
|
This example returns an issue list with all issues that do have Story points. |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
||||
|---|---|---|---|---|---|---|
|
|
text |
Any valid JQL Query. Double quotation marks in JQL have to be replaced with single quotation marks, e.g.:
|
Output
This function returns an issue list .
If the JQL query does not return a result, the function returns an empty issue list .
JQL query user
Variant where you additionally can specify a user which will execute the JQL query.
issuesFromJQL(jqlQuery, userName) #Output: Issue list
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns an issue list with all issues that are in status "Open" or "Done" that are visible for the reporter of the given issue. |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
||||
|---|---|---|---|---|---|---|
|
|
text |
Any valid JQL Query. Double quotation marks in JQL have to be replaced with single quotation marks, e.g.:
|
||||
|
|
text |
Text containing a valid user name. |
Output
This function returns an issue list
If the JQL query does not return a result, the function returns an empty issue list
📚 Use cases and examples
| Use case | Workflow function | Field type | Automated action | Parser functions |
|---|---|---|---|---|
| Prioritize the issues globally | ||||
| Sum of field value from issues in JQL query | ||||
| Number of issues in the same version | ||||
| Prevent issue creation with the same field value (Boolean) | ||||
| Create issue link when issue is created |