Hi!
I make script, but resolution validation is not working.
JIRA:
6.4.5
How can i fix it?
Maybe someone know where is mistake?
There is my code:
issue.resolutionObject.name == 'Training Delivered' || cfValues['GP Code checked']
Hope you help me.
i need make field ['GP Code checked'] required if resolution = 'Training Delivered'
It should be:
issue.resolutionObject.name != 'Training Delivered' || cfValues['GP Code checked']
Which means, if it IS traning delivered, that checkbox must have a value. It;s kind of inverted... lots of examples here: https://scriptrunner.adaptavist.com/latest/jira/recipes/workflow/validators/simple-scripted-validators.html
You can write it long-hand if it's clearer:
if (issue.resolutionObject.name == 'Training Delivered') { return cfValues['GP Code checked'] } else { return true }
Damn cannot added more then 3 comments.... i need make field ['GP Code checked'] required if resolution = 'Training Delivered'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you describe what you want to achieve.
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.