I'm trying to write a validation script using the behaviors plugin that pulls the state of all sub-tasks on a given issue and sets the validity of a field according to the states.
I assumed I could use 'issue.subTasks' but it doesn't look like the 'issue' variable is bound to the issue being edited/transitioned.
Any suggestions?