intersect()

Number list

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

Bash
intersect(numberList1, numberList2) #Output: Number list

Examples

Parser expression

Description

Bash
[1, 1, 2, 3] INTERSECT [1, 3, 5]

This example returns

[1, 3] 

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

numberList1

list

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

numberList2

list

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

Output

This function returns a number list

Text list

Variant for text lists.

Bash
intersect(textList1, textList2) #Output: Text list

Examples

Parser expression

Description

Bash
["red", "blue", "blue"] INTERSECT ["blue", "yellow", "yellow"]

This example returns

["blue"]

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

textList1

list

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

textList2

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.

Bash
intersect(issueList1, issueList2) #Output: Issue list

Examples

Parser expression

Description

Bash
linkedIssues() INTERSECT 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

Parameter

Input (data type)

Description

issueList1

list

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

issueList2

list

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

Output

This function returns an issue list

This function is the equivalent to the list operator INTERSECT and can be used interchangeably. 

📚 Use cases and examples

Use case Workflow function Field type Automated action Parser functions