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(" ")
It works. Thanks a lot @Roland Holban (Adaptavist)
It looks like you're new here. Sign in or register to get started.