Hi, all!
I want to use a built-in script "Send a custom email" from Script Runner plugin (groovy), but I don't know how to write next condition, using groovy language: all subtasks are resolved.
My global task: send notification to assignee of task, when all subtasks are resolved.
Hi Kirilova. As Dieter says, the condition is optional, and if you use the "auto-transition when resolved" post-function maybe you don't need this one, it can be handled as a regular notification in the notif scheme.
You might want to use the custom email notif if you want greater control over the email though. Assuming you are using this as a listener or workflow function on the sub-task issue type, this condition should do it:
issue.parentObject?.subTaskObjects?.every {it.resolution}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.