This function creates a variable for storing a boolean value, and directly setsvalue.

This value will be immediately returned and can be accessed by the getBoolean() function afterwards within the same expression.


setBoolean(variableName, value) #Output: Boolean



Expression parserDescription


setBoolean("myBoolean",true)


This example creates the variable "myBoolean", sets the boolean value true and returns it accordingly.



Parameters used in this function

ParameterInput (data type)Description
variableName

A text for the variable name.
value

A JWT expression, which must return a boolean value of true or false.



This function returns a 


To retrieve the value stored in the variable, use the function getBoolean() within the same expression.



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

Since Jira Expressions allows to have variables, there is a simple workaround for this:

let myBoolean = issue.priority.name>"Medium";
myBoolean ? "It is correct": "It's not"







Status
Tech review

Style guide




Short description

Creates a variable to temporarily store a boolean value

Output

Available since

Label