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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.