Supported list types


Number list

This function filters a number list using the given comparison.


filterByValue(numberList, operator, number) #Output: Number list



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]



Parameters used in this function

ParameterInput (data type)Description
numberList

Any given number list.
operator

One of the allowed comparison operators.
number

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



This function returns a



Text list

This function filters a text list using the given comparison.


filterByValue(textList, operator, text) #Output: Text list



Parser expressionDescription


filterByValue(["John", "Robert", "Kevin", "Mark"], ~, "r") 


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

["Robert", "Mark"]


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


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

["John", "Kevin"]


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


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

To achieve this, the following functions are used:



Parameters used in this function

ParameterInput (data type)Description
textList

Any given text list.
operator

One of the allowed comparison operators.
text

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



This function returns a



Use cases and examples



Parser function cloudfilterByValue()
Map(tick)
Notes






Status
Tech review

Style guide




Short description

Filters a number or text list using a given comparison.

Output

Available since

Label