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

Compare with Current View Page History

« Previous Version 3 Next »

This function returns a text list representing each of the values selected in the field.

Syntax
toStringList(multi-valued field field) #Output: Text list
Examples
Parser expressionDescription
toStringList(%{...components})

This example returns a list of strings with 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 TEXT LIST


This function returns a text list with tokens in parameter s separated by characters in parameter separators. Leading and trailing spaces around each token are automatically removed.

Syntax
toStringList(text s, text separators) #Output: Text list
Examples
Parser expressionDescription
 toStringList("red, orange, yellow; green; blue; purple", ",;")

This example returns the following text list: ["red", "orange", "yellow", "green", "blue", "purple"]

Additional information

Parameters used in this function

ParameterInput (data type)Description
s

TEXT

Any given text.
separators

TEXT

Parameter description.
Output

The function returns a TEXT LIST