toString()

Number

This function converts the decimal representation of a number (or timestamp) to plain text

Bash
toString(number) #Output: Text

Examples

Parser expression

Description

Bash
%{toString(3.141592)}

This example returns:

3.141592

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

number

number

Any given number or numeric field code.

Output

This function returns a text

Number with decimal placing

Variant where you can additionally define the number of decimal places.

Bash
 toString(number, decimalPlaces) #Output: Text

Examples

Parser expression

Description

Bash
%{toString(3.141592, 2)}

This example returns:

3.14

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

number

number

Any given number or numeric field code.

decimalPlaces

number

Any natural number including 0.

Output

This function returns a text


Number list

This function converts any number list to plain text.

A comma-separated text with the decimal representation of each numeric value will be returned.

Bash
 toString(numberList) #Output: Text

Examples

Parser expression

Description

Bash
%{toString([1, 2, 3, 4.0])}

This example returns:

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 with decimal placing

Variant where you can additionally define the number of decimal places.

Bash
 toString(numberList, decimalPlaces) #Output: Text

Examples

Parser expression

Description

Bash
%{toString([1.123, 2.452, 3.64612, 4], 2)}

This example returns:

1.12, 2.45, 3.65, 4.00

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

numberList

number list

Any given number list.

decimalPlaces

number

Any natural number including 0. 

Output

This function returns a text


Text list

This function converts any text list to plain text.

A comma-separated text with each value will be returned.

Bash
 toString(textList) #Output: Text

Examples

Parser expression

Description

Bash
%{toString(["Hello", " ", "world", "!"])}

This example returns:

Hello, , world, !

Bash
%{toString(%{issue.components})}

This example might return:

UI, portal, database

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


Issue list

Converts an issue list to a comma-separated text containing issue keys.

Bash
toString(issueList) #Output: Text

Examples

Parser expression

Description

Bash
%{toString(subtasks())}

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


(books) Use cases and examples