Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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


Page properties
hiddentrue


Output
Short description<Short, generic description of the parser function(s) (if multiple parameters are available)

Returns a text 

Output

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

This function returns a text with a comma-separated list of decimal representation of the numeric values in l.



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


UI Expand
titleExamples


Parser expressionDescription


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


This example returns the following text: "1, 2, 3, 4"



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
l

Status
subtletrue
titlenumber list

Any given number list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

Detailed description of the parser functionThis function returns a text with a comma-separated list of issue keys.


Code Block
languagebash
titleSyntax
linenumberstrue
functiontoString(firstParameter,issue secondParameter,list thirdParameterl) #Output: NumberText


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeInValue(%{issue.summary}, ^% ~~ "ERROR" OR ^% ~~ "WARNING") / {HOUR}
This example returns the number of hours the field summary of the current issue contained any of the words "ERROR" or "WARNING", ignoring the case
toString(subtasks())


This example returns "CRM-5, CRM-6 ", being CRM-5 and CRM-6 the keys of current issue's sub-tasks.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
l

Status
subtletrue
titleissue list

A given issue list.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

This function returns a text with a list of issue keys separated by parameter separator.


Code Block
languagebash
titleSyntax
linenumberstrue
toString(issue list l, string separator) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
 toString(subtasks(), " " )


This example returns "CRM-5, CRM-6 ", being CRM-5 and CRM-6 the keys of current issue's sub-tasks.



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
l

Status
subtletrue
titleissue list

A given issue list.
separator

Status
subtletrue
titledata type

Parameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

This function returns a text with a comma-separated list of decimal representations of the numeric values in l, with the number of characters in the decimal part specified by parameter decimals.


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(number list l, number decimals) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeInValue(%{issue.components}, count(toStringList(^%, ",")) > 1) / {HOUR}
toString([1.123, 2.452, 3.64612], 2)


This example returns the following text: "1.12, 2.45, 3.65"



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
l

Status
subtletrue
titlenumber list

A given number list.
decimals

Status
subtletrue
titledata type

Parameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

This function returns a text with a list of decimal representations of the numeric values in l, with the number of characters in the decimal part specified by parameter decimals and separated by parameter separator.


Code Block
languagebash
titleSyntax
linenumberstrue
 toString(number list l, number decimals, text separator) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
toString([1.123, 2.452, 3.64612], 2, " : ")


This example returns the following text: "1.12 : 2.45 : 3.65"



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
l

Status
subtletrue
titlenumber list

A given number list.
decimals

Status
subtletrue
titlenumber

Parameter description.
separator

Status
subtletrue
titletext

Parameter description.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box

This function returns a text with the decimal representation of the numeric value in n. Numeric value of a Date_Time field is number of milliseconds elapsed since January 1, 1970, 00:00:00 GMT.


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


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
toString(3.141592)


This example returns the following text: "3.141592"



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
n

Status
subtletrue
titlenumber

Any given number.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext




UI Text Box
sizemedium
typeinfo

This function returns a text with the decimal representation of the numeric value in n limiting the fractional part to the number of digits in parameter decimals.


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


UI Expand
titleExamples


This example uses the functions:

  • count()
  • xxxx

    Parser expressionDescription


    Code Block
    languagebash
    linenumberstrue
    toString(3.141592, 2)


    This example returns the following text: "3.14"

    This example returns the number of hours the field components of the current issue contained more than one selected component.

    Info



    UI Expand
    titleAdditional information

    Parameters used in this function

    secondParameter
    ParameterInput (data type)Description
    firstParametern

    Status
    subtletrue
    titlenumber

    The input has to be a valid timestamp...Any given number.
    decimals

    Status
    subtletrue
    titlenumber

    Any given number smaller or equal than n.



    UI Expand
    titleOutput

    This function returns a

    Status
    subtletrue
    titletext




    UI Text Box
    sizemedium
    typeinfo

    This function returns a text with a comma-separated list of text values in l.


    Code Block
    languagebash
    titleSyntax
    linenumberstrue
     toString(string list l) #Output: Text


    UI Expand
    titleExamples


    Parser expressionDescription


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


    This example returns the following text: "Hello, , world, !"



    UI Expand
    titleAdditional information

    Parameters used in this function

    thirdParameter
    ParameterInput (data type)Description
    l

    Parameter description. Read more about Working with lists

    Status
    subtletrue
    titletext list

    Any given text listParameter description.



    UI Expand
    titleOutput

    The This function returns a

    Status
    subtletrue
    titlenumbertext




    UI Text Box
    sizemedium
    typeinfo

    This function returns a text from the list of text values in l separated by parameter separator.


    Code Block
    languagebash
    titleSyntax
    linenumberstrue
    toString(text list l, text separator) #Output: Text


    UI Expand
    titleExamples


    Parser expressionDescription


    Code Block
    languagebash
    linenumberstrue
    toString(["blue", "red", "green"], "; ")


    This example returns the following text: " blue; red; green "



    UI Expand
    titleAdditional information

    Parameters used in this function

    ParameterInput (data type)Description
    l

    Status
    subtletrue
    titletext list

    Any given text list.
    seperator

    Status
    subtletrue
    titletext

    Parameter description.



    UI Expand
    titleOutput

    This function returns a

    Status
    subtletrue
    titletext

    typetip

    If there is more to say, say it or link to related functions...

    Are you looking for a more detailed representation? You might want to have a look at the function formatDuration()...