Hi,
I am trying to set up a validator on issue creation using "ScriptRunner for JIRA" to only allow a field to be filled in only if there are no 'Spaces'
Example:
abc 123 < Incorrect
abc123 < Correct
Any suggestions please?
Cheers,
Jason
Hi @Jason Galea,
it should work if you get the field value as string and then check, for example with the contains-method, if there are any spaces within.
Use this as your validator condition:
!cfValues["FIELD_NAME"]?.value.contains(" ")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works. Thanks a lot @Roland Holban (Adaptavist)
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.