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
Add the Logical validator to the desired workflow transition.
Expression
Add an expression following the next format:
Bash
toStringList(%{issue.components}) ~ ["Component 01", "Component 02"]
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.
Error message
Optionally, enter an error message as the following one.
Bash
Only issues with Component 01 and Component 02 can be transitioned.