toLogicalValue()

Boolean

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

Bash
 toLogicalValue(text) #Output: Boolean

Examples

Parser expression

Description

Bash
toLogicalValue(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:

Bash
toLogicalValue("true")

This is a very basic use case for a logical expression - it returns true.

Additional information

Parameters used in this function

Parameter

Input (data type)

Description

text

text

Any given text. 


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

Output

This function returns a boolean


(books) Use cases and examples