Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone
Status
colourRed
titlestaff pick

Style guide

Status
colourGreen
titledone

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


Page properties
hiddentrue


Short description

Converts numbers and lists to plain text.

Output

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(number) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toString(3.141592)}


This example returns:

3.141592



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
number

Status
subtletrue
titlenumber

Any given number or numeric field code.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(number, decimalPlaces) #Output: Text

UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toString(3.141592, 2)}


This example returns:

3.14



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
number

Status
subtletrue
titlenumber

Any given number or numeric field code.
decimalPlaces

Status
subtletrue
titlenumber

Any natural number including 0. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



Number list

UI Text Box
sizemedium
typeinfo

This function converts any number list to plain text.

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


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(numberList) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toString([1, 2, 3, 4.0])}


This example returns:

1, 2, 3, 4



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
numberList

Status
subtletrue
titlenumber list

Any given number list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(numberList, decimalPlaces) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toString([1.123, 2.452, 3.64612, 4], 2)}


This example returns:

1.12, 2.45, 3.65, 4.00



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
numberList

Status
subtletrue
title number list

Any given number list.
decimalPlaces

Status
subtletrue
titlenumber

Any natural number including 0. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



Text list

UI Text Box
sizemedium
typeinfo

This function converts any text list to plain text.

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


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(textList) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toString(["Hello", " ", "world", "!"])}


This example returns:

Hello, , world, !


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


This example might return:

UI, portal, database



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
textList

Status
subtletrue
titletext list

Any given text list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



Issue list

UI Text Box
sizemedium
typeinfo

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


Code Block
languagebash
titleSyntax
linenumberstrue
toString(issueList) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{toString(subtasks())}


This example might return:

 "CRM-5, CRM-6 "

To achieve this the following functions are used:



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
issueList

Status
subtletrue
titleissue list

Any given issue list. Usually this value is retrieved from a function (e.g. linkedIssues() or subtasks()).



UI Expand
titleOutput
Short description

This function returns a

Status
subtletrue
titletext
Page properties
hiddentrue
Output

Converts numbers and lists to plain text.

Status
subtletrue
titletext

Label StatuscolourRedtitlestaff pick