Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged


Page properties
hiddentrue


Short description

Converts text to a number list.

Output

Status
subtletrue
titlenumber list




UI Text Box
sizemedium
typeinfo

This function converts a comma-separated text containing numbers to a number list.


Code Block
languagebash
titleSyntax
linenumberstrue
toNumberList(text) #Output: Number list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toNumberList("1, 3, 5 ,7, 11, 13")}


This example returns the following number list:

[1, 3, 5, 7, 11, 13]


Code Block
languagebash
linenumberstrue
%{toNumberList(%{issue.components.id})}


In case the issue has the components "Frontend" and "Backend" with the respective IDs 10001 and 10002, this example returns the following number list:

[10001, 10002]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any comma-separated text satisfying the format: "Element1, Element2".



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list



UI Text Box
sizemedium
typeinfo

Variant where you can additionally define custom separators.

Leading and trailing spaces around each list element are automatically removed.


Code Block
languagebash
titleSyntax
linenumberstrue
toNumberList(text, separators) #Output: Number list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toNumberList("1, 3? 5; 7; 11; 13", ",?;")}


This example returns the following number list:

[1, 3, 5, 7, 11, 13]



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any text containing numbers in decimal representation (e.g. "1, 2, 3") , separated by one of the characters defined in the second parameter.
separators

Status
subtletrue
titletext

Any separator characters.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber list