Number
This function converts the decimal representation of a number (or timestamp) into plain text.
This is one of the most commonly used functions in JWT.
Whenever any type of list is returned by a field code or parser function (e.g. subtasks()) and you are using the advanced text parsing mode, the toString() function converts the output to a readable format.
This is especially helpful if you want to test your expression.
toString(number) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "3.141592" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number |
Any given number or numerical field code. |
Output
This function returns a text
Number decimal placing
Variant where you can additionally define the number of decimal places.
toString(number, decimalPlaces) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "3.14" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number |
Any given number. |
|
|
number |
Any positive number. |
Output
This function returns a text
Number list
This function converts any number list into plain text.
A comma-separated text with the decimal representation of each numeric value will be returned.
toString(numberList) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "1, 2, 3, 4" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
numberList |
number list |
Any given number list. |
Output
This function returns a text
Number list decimal placing
Variant where you can additionally define the number of decimal places.
toString(numberList, decimalPlaces) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "1.12, 2.45, 3.65" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number list |
Any given number list. |
|
|
number |
Any positive number. |
Output
This function returns a text
Number list decimal placing and separator
Variant where you can additionally define a specific separator.
toString(numberList, decimalPlaces, separator) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "1.12 : 2.45 : 3.65" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
number list |
Any given number list. |
|
|
number |
Any positive number. |
|
|
text |
Any separator character. |
Output
This function returns a text
Text list
This function converts any text list into plain text.
A comma-separated text with each value will be returned.
toString(textList) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "Hello, , world, !" |
|
Bash
|
This example returns the user names of all sub-task reporters, e.g.: "b.smith, a.grant" To achieve this the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
textList |
text list |
Any given text list. |
Output
This function returns a text
Text list separator
Variant where you can additionally define a specific separator.
toString(textList, separator) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example returns the text: "blue; red; green" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
|
text list |
Any given text list. |
|
|
text |
Any separator character. |
Output
This function returns a text
Issue list
Converts an issue list into a comma-separated text containing issue keys.
toString(issueList) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example might return: "CRM-5, CRM-6 " To achieve this the following functions are used: |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
issueList |
issue list |
Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()). |
Output
This function returns a text
Issue list separator
Variant where you can additionally define a specific separator.
toString(issueList, separator) #Output: Text
Examples
|
Parser expression |
Description |
|---|---|
|
Bash
|
This example might return: "CRM-5 CRM-6 CRM-7" |
|
Bash
|
This example might return: "CRM-5;CRM-6;CRM-7" |
Additional information
Parameters used in this function
|
Parameter |
Input (data type) |
Description |
|---|---|---|
|
issueList |
issue list |
Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()). |
|
|
text |
Any separator character. |
Output
This function returns a text