Supported list types

Number list

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.

Syntax
intersect(numberList1, numberList2) #Output: Number list
Examples
Parser expressionDescription
%{intersect([1, 1, 2, 3],[1, 3, 5])}

This example returns

1, 3

%{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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
numberList1

NUMBER LIST

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

NUMBER LIST

Any type number list. Learn more about working with lists.
Output

This function returns a NUMBER LIST


Text list

Variant for text lists.

Syntax
intersect(textList1, textList2) #Output: Text list
Examples
Parser expressionDescription
%{intersect(["red", "blue", "blue"],["blue", "yellow", "yellow"])}

This example returns

blue



%{intersect(toStringList(%{issue.versions}),toStringList(%{issue.fixVersions}))}

This example returns a 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:

Additional information

Parameters used in this function

ParameterInput (data type)Description
textList1

TEXT LIST

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

TEXT LIST

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

This function returns a TEXT LIST


Issue list

Variant for issue lists.

Syntax
intersect(issueList1, issueList2) #Output: Issue list
Examples
Parser expressionDescription
%{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:


Additional information

Parameters used in this function

ParameterInput (data type)Description
issueList1

ISSUE LIST

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

ISSUE LIST

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

This function returns an ISSUE LIST


Use cases and examples