This function converts a comma-separated text containing numbers to a number list.
Syntax
toNumberList(text) #Output: Number list
Syntax
toNumberList(text, separators) #Output: Number list
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 5 Next »
This function converts a comma-separated text containing numbers to a number list.
toNumberList(text) #Output: Number list
Parser expression | Description |
---|---|
%{toNumberList("1, 3, 5 ,7, 11, 13")} | This example returns the following number list: [1, 3, 5, 7, 11, 13] |
%{toNumberList(%{issue.component.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] |
Parameters used in this function
Parameter | Input (data type) | Description |
---|---|---|
text | TEXT | Any comma-separated text satisfying the format: "Element1, Element2". |
This function returns a NUMBER LIST
toNumberList(text, separators) #Output: Number list
Parser expression | Description |
---|---|
%{toNumberList("1, 3? 5; 7; 11; 13", ",?;")} | This example returns the following number list: [1, 3, 5, 7, 11, 13] |
Parameters used in this function
Parameter | Input (data type) | Description |
---|---|---|
text | TEXT | Any comma-separated text containing numbers in decimal representation (e.g. "1, 2, 3") , separated by one of the characters defined in the second parameter. |
separators | TEXT | Any separator characters. |
This function returns a NUMBER LIST
Powered by Atlassian Confluence 8.5.7, themed by Refined 7.5.3 and Decadis AG