UNION

This function returns a list with all distinct elements in two lists.

The order is respected.


Bash
list1 UNION list2 #Output: List


Examples

Parser expression

Description

Bash
[1, 2, 3] UNION [3, 4, 4]

This example returns

[1, 2, 3, 4]

Bash
["blue", "red", "red"] UNION ["red", "green"]

This example returns

["blue", "red", "green"]

Bash
linkedIssues() UNION subtasks()

 

This example returns a list with all

linked

issues and sub-tasks of the current issue without repetitions.

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

list1

list

Any type of text, number or issue list. Learn more about

working with lists

.

list2

list

Any type of text, number or issue list. Learn more about

working with lists

.

Output

This function returns a list