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


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




JWT feature

Workflow function

Logical validator

Parser functionsreplaceAll() length()
Labelused to mark a use case as staff pick





Status
Tech review

Style guide