How can I set fix verion validation from simple script validator?
cfValues['FixVersions']?.value != ''
cfValues['Fix Versions']?.value != ''
cfValues['Fix Version/s']?.value != ''
All above are displaying error message (x).
When I set as issue.FixVersions != '', it dosen't work correctly.
I want following condition.
: FixVersions is empty -> workflow transition
: FixVersions is not empty -> validate required custom field
Hi @jun lee
Here you have a great example: https://scriptrunner.adaptavist.com/5.3.28/jira/recipes/workflow/validators/simple-scripted-validators.html#_require_a_em_fix_version_em_if_the_resolution_value_is_em_fixed_em
Regards,
Seba
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.