You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This function expects in argument s a text containing numbers in decimal representation separated by characters in argument separators, and returns a number list.

Syntax
toNumberList(multi-valued field field) #Output: Number list
Examples
Parser expressionDescription
toNumberList(%{issue.components.id})

This example returns a list with IDs of each of the components selected in the current issue.

Additional information

Parameters used in this function

ParameterInput (data type)Description
Field

DATA TYPE

Field code for a multi-value field in format %{...somefield}. Multi-valued fields are Multi-Select, Checkboxes, Components, Versions, Multi User Picker, Multi Group Picker, Issue Pickers, Attachments and Labels.
Output

The function returns a NUMBER LIST

Syntax
toNumberList(text s, text separators) #Output: Number list
Examples
Parser expressionDescription
toNumberList("1, 3, 5; 7; 11; 13", ",;")

This example returns the following number list: [1, 3, 5, 7, 11, 13]

Additional information

Parameters used in this function

ParameterInput (data type)Description
s

TEXT

Any given text.
separators

TEXT

Parameter description. Read more about Working with lists

Output

This function returns a NUMBER LIST