Hello,
I'm configuring a new postfunction with Scriptrunner to create subtasks. I need to check first if the issue has subtasks of the same type. I have added this condition
issue.subTaskObjects.any{ it.issueType.name == "Imputacion de Horas" }
I thought that checked if the issue has subtask of "Imputación de horas", but if the issue has another subtask doesn't generate the subtask.
Any ideas?
Thank you!!