I want to put a custom scripted condition/validator (not sure which is better in this case?) on a transition so that it can't be performed unless all linked issues are resolved.
I've tried some scripts I've found on Script Runner forums but get errors with ComponentManager and java.Lang.object and so forth which I'm guessing means they are out of date.
Basically I just need a condition that says:
If (there are any issues linked to this one with relationship 'triggered by') AND (the status of those issues is not resolved), set the value of this condition to FALSE (or whatever doesn't allow the transition).
Can anyone please help me to express this in Groovy?