I'd rather not create different workflows for sub-tasks and Epics if I can help it. As such I'd like to have a simple groovy script that says
For these issue types ... if Epic Link is empty, return False.
Using Scripted (Groovy) Validator (JMWE add-on) I tried several different ways to get this to work. All failed. The piece I'm having trouble with is testing if Epic Link is empty.
Here's the last thing that didn't work.
if((issue.issueType.name == 'Improvement' || issue.issueType.name == 'New Feature') && !cfValues['epicLink']) { return false; }
return true;All help appreciated.