EXCEPT

This function returns a list of elements in a list which are not present in a second list.

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


Bash
list1 EXCEPT list2 #Output: List
Examples

Parser expression

Description

Bash
[1, 2, 2, 3, 3] EXCEPT [2, 5, 6]

This example returns

[1, 3]

Bash
["red", "red", "blue", "blue", "green"] EXCEPT ["blue", "yellow"]

This example returns

["red", "green"]

Bash
linkedIssues() EXCEPT subtasks()

This example returns a list of all linked issues that are not sub-tasks of the current issue.

To achieve this, the following functions are used:

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