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
Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short description

Returns the

Status
subtletrue
titleissue list
of issues resulting of the execution of a JQL query represented by string argument jql_query. Visibility permissions applied are those of current user.

Output

Status
subtletrue
title

text

Any valid JQL Query.

issue list

UI Text Box
sizemedium
typeinfo
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 The function returns the

Status
subtletrue
titleissue list
of issues resulting of the execution of a JQL query represented by string argument jql_query. Visibility permissions applied are those of current user.Typically you will want to use this function for replacing any current expression using getIssuesFromProjects() function.

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

Status
subtletrue
titleissue list
.




UI Text Box
sizemedium
typetipinfo

Variant where you additionally can specify a user which will execute the JQL queryWe advice to use this function for performance reasons when the number of issues to be retrieved or filtered is very high (all issues in a project or various projects).


Code Block
languagebash
titleSyntax
linenumberstrue
issuesFromJQL(text jql_queryjqlQuery, 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
<parameter>jqlQuery

Status
subtletrue
titledata typetext

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 nameParameter description.



UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list

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

Status
subtletrue
titleissue list



Image AddedUse cases and examples

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


Page properties
hiddentrue
id1


Parser function cloudissuesFromJQL()
Map(tick)
Notes




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