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
Short description<Short, generic description of the parser function(s) (if multiple parameters are available)Output Statussubtletruetitletext listAvailable since StatussubtletruecolourBluetitle2.2.12 UI Text Box
sizemedium
typeinfo

This function converts a text representing a number into an integerYou can additionally define the radix (base) to be used for the conversion.

 In case it is not possible to parse the text to an integer, null is returnedDetailed description of the parser function.


Code Block
languagebash
titleSyntax
linenumberstrue
functiontoInteger(firstParametertext, secondParameter, thirdParameterradix) #Output: Number


UI Expand
titleExamples


timeInValue(%{issue.components}, count(toStringList(^%, ",")) > 1) / {HOUR} of hours the field components of the current issue contained more than one selected component.
Parser expressionDescription


Code Block
languagebash
linenumberstrue
timeInValue(%{issue.summary}, ^% ~~ "ERROR" OR ^% ~~ "WARNING") / {HOUR} toInteger("ff", 16) #Base 16


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.:

255


Code Block
languagebash
linenumberstrue
 toInteger("11111111", 2) #Binary


This example returns the number

Info

This example uses the functions:

:

252



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
firstParametertext

Status
subtletrue
titlenumber

The input has to be a valid timestamp...

text

Any given text representing a number.
radixsecondParameter
Status
subtletrue
titlestring list

Parameter description. Read more about Working with lists

thirdParameter

Status
subtletrue
titletext

Parameter descriptionThe radix to be applied for the conversion.



UI Expand
titleOutput

The This function returns a

Status
subtletrue
titlenumber



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_tointeger" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible to cast string into number in other representation different than the decimal.




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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



Page properties
hiddentrue


Short description

Converts text into an integer.

Output

Status
subtletrue
titlenumber

Available since


Label
UI Text Box
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()...