I would like to add a Validator on the Create transition of a Story that prevents the user from creating the Issue if A) the Parent field is empty, or
if the Parent Issue status is "Done".
I have tried this ScriptRunner script, but it is not being triggered, and the validation automatically returns false:
if (issue.parent != null) {
return issue.parent.status.name != 'Done';
} else {
return false;
}Any tips would be appreciated!
Thank you