Supported list types

Number list

This function filters a number list using the given comparison.

Syntax
filterByValue(numberList, operator, number) #Output: Number list
Examples
Parser expressionDescription
%{filterByValue([1, 2, 3, 10, 11, 25, 100], >, 10)}

This example returns a number list of values greater than 10:

11, 25, 100

%{filterByValue([1, 2, 3, 10, 11, 25, 100], <=, 10)}

This example returns a number list of values less than or equal to 10

1, 2, 3, 10

Additional information

Parameters used in this function

ParameterInput (data type)Description
numberList

NUMBER LIST

Any given number list.
operator

OPERATOR

One of the allowed comparison operators.
number

NUMBER

Any given number that will be used in combination with the operator to filter the given list.
Output

This function returns a NUMBER LIST


Text list

This function filters a text list using the given comparison.

Syntax
filterByValue(textList, operator, text) #Output: Text list
Examples
Parser expressionDescription
%{filterByValue(["John", "Robert", "Kevin", "Mark"], ~, "r")}

This example returns a text list of texts containing the charater "r": 

Robert,Mark

%{filterByValue(["John", "Robert", "Kevin", "Mark"], !~, "r")}

This example returns a text list with all elements that don't contain the charater "r": 

John,Kevin

%{filterByValue(toStringList(%{issue.labels}), ~, "new")} 

This example returns a text list with all labels from the current issue that contain the text "new", e.g.

new, newFeature

To achieve this, the following functions are used:

Additional information

Parameters used in this function

ParameterInput (data type)Description
textList

TEXT LIST

Any given text list.
operator

OPERATOR

One of the allowed comparison operators.
text

TEXT

Any given text that will be used in combination with the operator to filter the text list.
Output

This function returns a TEXT LIST


Use cases and examples