Prevent a transition depending of the number of components

Use case

Prevent a transition if the number of components selected is less than 2.


⚒️ Configuration

Add a Logical validator to the transition of your choice.

Expression

Enter the following parser expression.

Bash
numberOfSelectedItems(%{issue.components}) >= 2

Error message

Optionally, enter an error message.

 The number of components selected is less than 2.


📚 Related use cases