I need help with the following Script runner code. We need to check the status of a particular subtask before it can be transitioned. When i use the below code the validation doesn't work
passesCondition = true
def subTasks = issue.getSubTaskObjects()
subTasks.each {
if (it.summary =~ "Gap Analysis" && it.status == "Done")
passesCondition = false
}