You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

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 than 100 characters.


Related use cases


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