Versions Compared

Key

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

Supported list types

Table of Contents
exclude(Supported list types).*
stylecircle
typeflat
separatorpipe

Number list

UI Text Box
sizemedium
typeinfo

This function returns a number list with all numbers present in two lists simultaneously.

The returned list does not contain duplicates. The order is respected.

Code Block
languagebash
titleSyntax
intersect(numberList1, numberList2) #Output: Number list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{intersect([1, 1, 2, 3],[1, 3, 5])}

This example returns

1, 3

Code Block
languagebash
linenumberstrue
%{intersect(toNumberList(%{issue.versions.id}),toNumberList(%{issue.fixVersions.id}))}
  • This example returns a number list of version id/s that appear both in affected and fix version/s id/s of the current issue, e.g. 

    10002 

    To achieve this, the following functions are used:

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
numberList1

Status
subtletrue
titlenumber list

Any type of number list. Learn more about working with lists.
numberList2

Status
subtletrue
titlenumber list

Any type number list. Learn more about working with lists.
UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list


Text list

UI Text Box
sizemedium
typeinfo

Variant for text lists.

Code Block
languagebash
titleSyntax
linenumberstrue
intersect(textList1, textList2) #Output: Text list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{intersect(["red", "blue", "blue"],["blue", "yellow", "yellow"])}

This example returns

blue



Code Block
languagebash
linenumberstrue
%{intersect(toStringList(%{issue.versions}),toStringList(%{issue.fixVersions}))}

This example returns a string text list of version/s that appear both in affected and fix version/s of the current issue, e.g. 

1.1 

To achieve this, the following functions are used:

UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
textList1

Status
subtletrue
titletext list

Any type of text list. Learn more about working with lists.
textList2

Status
subtletrue
titletext list

Any type of text list. Learn more about working with lists.
UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list


Issue list

UI Text Box
sizemedium
typeinfo

Variant for issue lists.

Code Block
languagebash
titleSyntax
linenumberstrue
intersect(issueList1, issueList2) #Output: Issue list
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
%{intersect(linkedIssues(), subtasks())}

This example returns a list with all sub-tasks which are also linked to the current issue.

To achieve this, the following functions are used:


UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList1

Status
subtletrue
titleissue list

Any type of issue list. Learn more about working with lists.
issueList2

Status
subtletrue
titleissue list

Any type of issue list. Learn more about working with lists.
UI Expand
titleOutput

This function returns an

Status
subtletrue
titleissue list

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 common elements of two lists.

Output

Status
subtletrue
titlenumber list
 
Status
subtletrue
titletext list
 
Status
subtletrue
titleissue list

Available since

Status
subtletrue
colourBlue
title2.4.0

Label