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 a logical value.

Output

Status
subtletrue
titleboolean

UI Text Box
sizemedium
typeinfo

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().


Code Block
languagebash
titleSyntax
linenumberstrue
 toLogicalValue(text) #Output: Boolean


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
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:


Code Block
languagebash
linenumberstrue
toLogicalValue("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. 


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



UI Expand
titleOutput

This function returns a

Status
subtletrue
titleboolean



Image AddedUse cases and examples

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


Page properties
hiddentrue



Status
Tech review

Status
colourYellow
titleReady for review

Style guide

Status
colourGreen
titledone

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


Page properties
hiddentrue


Short description

Converts a text and lists to a logical value.

Output

Status
subtletrue
titleboolean