This function converts a text representing a number into a number.
This function expects a decimal representation of a number. In case it is not possible to parse the text to a number and null is returned.
Bash
toNumber(text) #Output: Number
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the number: 3.14 |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text |
Any given text representing a number. |
Output
This function returns a number
(books) Use cases and examples
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|---|---|---|---|---|
| Set custom IDs for each issue |
|
||||
| Calculate custom sequence numbers |
|
||||
| Sum of Tempo billable hours |
|
Number | |||
| Set the next fix version |
|
floor() toNumber() substring() length() | |||
| Create a sub-task for every sub-task closed |
|
findReplaceFirst() first() findPattern() toString() sum() toNumber() |