Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

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.


UI Text Box
typetip

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:


Code Block
languagebash
titleSyntax
linenumberstrue
issuesFromJQL(jqlQuery) #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
issuesFromJQL("status in (Open, Done)")


This example returns an issue list with all issues that are in status "Open" or "Done".


Code Block
languagebash
linenumberstrue
issuesFromJQL("'Story points' is not empty")


This example returns an issue list with all issues that do have Story points.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
jqlQuery

Status
subtletrue
titletext

Any valid JQL Query.

UI Text Box
typenote

 Double quotation marks in JQL have to be replaced with single quotation marks, e.g.:


Usually JQL would look like"Epic Link" is not empty
Using it within issuesFromJQL()'Epic Link' is not empty




UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list
.

If the JQL query  does not return a result, the function returns an empty

Status
subtletrue
titleissue list
.




UI Text Box
sizemedium
typeinfo

Variant where you additionally can specify a user which will execute the JQL query.


Code Block
languagebash
titleSyntax
linenumberstrue
issuesFromJQL(jqlQuery, userName) #Output: Issue list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
issuesFromJQL("status in (Open, Done)",%{issue.reporter))


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.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
jqlQuery

Status
subtletrue
titletext

Any valid JQL Query.

UI Text Box
typenote

 Double quotation marks in JQL have to be replaced with single quotation marks, e.g.:


Usually JQL would look like"Epic Link" is not empty
Using it within issuesFromJQL()'Epic Link' is not empty


userName

Status
subtletrue
titletext

Text containing a valid user name.



UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list

If the JQL query does not return a result, the function returns an empty

Status
subtletrue
titleissue list



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions
cqllabel = "parser_func_issuesfromjql" and space = currentSpace()


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns a list of issues returned by a specified JQL query.

Output

Status
subtletrue
titleissue list

Available since

Status
subtletrue
colourBlue
title2.1.33

Label

Status
colourRed
titlestaff pick