I've been mucking around with a Simple Scripted Validator (using ScriptRunner) for a while now. I clearly don't know what I'm doing. This is what I'm trying to do:
I have a Due Date Reason custom multi-line text field. I'd like it to be required only if the Due Date field has a selected value.
I'm using JIRA 7.3.1 and Adaptavist ScriptRunner 5.0.4.
Try the following code (check the exact name of custom field)
if(issue.getDueDue()) {
if(!cfValues['Due Date Reason'] ) {
return false;
}
}
return true;
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.