Prevent issue creation if description contains less than 100 characters

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:

Bash
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:

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

Error message

Enter an error message like the following one.

C#
The issue description must include at least 100 characters.


📚 Related use cases