Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
UI Text Box
sizemedium
typeinfo

This JQL function can be used to search for issues that satisfy the specified JQL query and logical expression.

Code Block
languagebash
titleSyntax
linenumberstrue
issueSelection(subquery, logicalExpression) #Output: Issue list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
issue in issueSelection('project = CRM', 'count(allComments()) > 10')

This example returns all issues within the CRM project with more than 10 comments.

To achieve this, the following functions are used:

Code Block
languagebash
linenumberstrue
issue in issueSelection('category = Support', 'count(filterByResolution(subtasks(), "")) > 0')

This example returns all issues from projects within the Support category with unresolved sub-tasks.

To achieve this, the following functions are used:

Code Block
languagebash
linenumberstrue
issue in issueSelection('type = Task', 'isAClone()')

This example returns all Tasks that have been created by cloning an issue.

To achieve this, the following functions are used:

Code Block
languagebash
linenumberstrue
issue in issueSelection('project = KANBAN', 'isInRole(%{issue.assignee}, "Developers")')

This example returns all issues within the KANBAN project that are assigned to users in the Developers role.

To achieve this, the following functions are used:

Code Block
languagebash
linenumberstrue
issue in issueSelection('type = Incident', 'lastFieldChangeTime(%{issue.priority}) > ({system.currentDateTime} - 60 * {MINUTE})')

This example returns all Incidents with a change of priority within the last 60 minutes.

To achieve this, the following functions are used:

Code Block
languagebash
linenumberstrue
issue in issueSelection("type = Bug and resolution = Unresolved", 'matches(%{issue.versions}, ".*EAP.*")')

This example returns all unresolved bugs with ana 'EAP'-labelled version.

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
subquery

Status
subtletrue
titletext

A JQL query to select the issues that should be further filtered by the logical expression.

UI Text Box
typetip

Pro tip: Write the JQL query in single quotes instead of double quotes. Otherwise everytime a double-quotation is used in the subquery, they must be jumped with a slash.

logicalExpression

Status
subtletrue
titletext

A logical expression that returns a boolean value.

UI Text Box
typetip

Pro tip: Write the parser expression in single quotes instead of double quotes. Otherwise everytime a double-quotation is used in the expression, they must be jumped with a slash.

UI Expand
titleOutput

This function returns a 

Status
subtletrue
titleissue list


Include Page
DECADIS:_snip_limit_JQL_functions
DECADIS:_snip_limit_JQL_functions
Page properties
hiddentrue
Short descriptionFilters issues by a given logical expression
Output

Status
subtletrue
titleISSUE LIST

Label
Page properties
hiddentrue

Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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