Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns the value stored in a number variable, which was previously created using the setNumber() function.


Code Block
languagebash
titleSyntax
linenumberstrue
getNumber(variableName) #Output: Number


UI Expand
titleExamples


Expression parserDescription


Code Block
languagebash
linenumberstrue
getNumber("myNumber")


This example returns the value stored in the variable named "myNumber", e.g.:

3



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
variableName

Status
subtletrue
titletext

The name of the stored variable.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber


UI Text Box
typetip

To return the value you must have created the variable before, using the setNumber() function within the same expression.



Use cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

It would be the same as the one for getBoolean(), but in the variable we would store an issue list.




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

Returns a value stored in a number variable.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourBlue
title2.6.0

Label