Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Page properties
hiddentrue

Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourYellow
titleReady for review

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

Page properties
hiddentrue
Short description

Converts a text and lists to boolean.

Output

Status
subtletrue
titleboolean

UI Text Box
sizemedium
typeinfo

This function converts the a text which holds true or false to the boolean value true or false. It is mainly used in connection with the function jiraExpression().

Code Block
languagebash
titleSyntax
linenumberstrue
 toBoolean(text) #Output: Boolean
UI Expand
titleExamples
Parser expressionDescription
Code Block
languagebash
linenumberstrue
toBoolean(jiraExpression("issues.every(c=>c.name=='UI')",subtasks()))

This example is used as a logical expression and returns true if all subtasks have a component UI

To achieve this the following functions are used:

Code Block
languagebash
linenumberstrue
toBoolean("true")
This is a very basic use case for a logical expression - it returns true.
UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text. 

If


(warning) If this text does not hold true or false, an error is returned!

UI Expand
titleOutput

This function returns a

Status
subtletrue
titleboolean