Versions Compared

Key

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


Panel

On this page

Table of Contents
maxLevel2
exclude(On this page|Use case).*
stylecircle
typeflat
separatorpipe



UI Text Box
sizemedium
typeinfo

Use case

Some fields return a text with several elements in the form of a list. In this use case we will convert this text into a text list and compare it with as many elements as needed.


Configuration


UI Steps


UI Step

Add the Logical validator to the desired workflow transition.


UI Step

Expression

Add an expression following the next format:

Code Block
languagebash
linenumberstrue
toStringList(%{issue.components}) ~ ["Component 01", "Component 02"]


UI Text Box
typeinfo

You can replace both the field code of the Components fields and the options between quotation marks and brackets with any custom field that returns a text and any text respectively.



UI Step

Error message

Optionally, enter an error message as the following one.

Code Block
languagebash
linenumberstrue
Only issues with Component 01 and Component 02 can be transitioned.





Related use cases

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Parser functions, Label
sortByTitle
cqllabel in ("use-case-workflow","parser_func_tostringlist") and ancestor = "27066629"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue


Page properties
hiddentrue


JWT feature

Workflow function

Logical validator Logical condition

Parser functionstoStringList()
Label



Page properties
hiddentrue



Status
Tech review

Status
titletodo

Style guide

Status
colourGreen
titletododone

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