On this page

Use case

Prevent issues from being created if their description contains less than 100 characters regardless of special characters and spaces.

Configuration

Add the Logical validator to the Create workflow transition.

Expression

Enter the following expression:

length(replaceAll(%{issue.description}, "[^a-zA-Z_0-9]", "")) >= 100
Variation

If you need to include the spaces in the total number of characters, you can enter the following expression instead:

length(replaceAll(%{issue.description}, "[^a-zA-Z_0-9\\s]", "")) >= 100

Error message

Enter an error message like the following one.

The issue description must include at least 100 characters.


Related use cases


If you still have questions, feel free to refer to our support team.