Hi,
We already tried using regex without the add-ons, but we can't customize the error message. Therefore, we stumble upon a post that suggests using the Power Script add-on, but we can't seem to find a way to do it. We want to create a validator that sets the minimum length in description field at least 50 character.
Hello @Sistema Datapilar
Yes, you can do that with Power Scripts.
You just need to add Power Scripts Validator on "Create Issue" transition, please visit this page for step-by-step instruction Conditions and Validators ; as a validator script you need to use the following Jira Expression :
issue.description.plainText.length > 50
Additional note: for the description field, you need to use "plainText.length" not just "length" because the Description has the type RichText field.
Hope it helps!
Anna
If you work in a company-managed project, the described case can be addressed using any Jira expression-based validator available on the Atlassian marketplace.
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app.
The expression you need is as shown on the screen below:
I am leaving a link to the app's documentation if you are interested.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.