Hello,
I need help in creating a Booleen expression for a Field Validator to
1. Allow the user to enter nothing
2. If the user enters a value, that value needs to be numeric characters and 6 characters in length
Thanks
Hi @steve.collins , I have tried to do this in a vanilla Jira cloud instance and it is not doable, because the premise of the out-of-the-box validator is it has to have a value and then extra checks depending on the type of validator you want.
What I can suggest is to use JMWE for Cloud and look for Scripted validator.
Refer to this doc.
https://innovalog.atlassian.net/wiki/spaces/JMWEC/pages/935362565/Build-your-own+scripted+Validator
Thanks
I was hoping I could add the expression something like [0-9]{6}^null
in other words the field could be 6 digits long OR not entered
What would be the correct expression for this ?
Steve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @steve.collins ,
Aha!, it's definitely doable but you have to find the right regex for it.
Something similar to this.
https://stackoverflow.com/questions/5063977/regex-empty-string-or-email
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.