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