We are looking to create a rule where if a task has subtasks, and all subtasks are marked complete, when the task is marked complete, an action happens. Right now, we can have the rule perform if:
- There are subtasks and all subtasks are marked completed
- The task is marked completed, regardless of subtask presence or status
We don’t have an option for “if task is marked completed but there are subtasks that are not marked as completed”. Something along the lines of “if not all subtasks are marked as completed” would be helpful for us.
I just set up a rule like this this morning, and my way of making it work was to have the main branch be “if all subtasks are complete, add comment” since it requires an action. Then the “otherwise” branch is the one that runs if not all subtasks are complete, and it marks the task incomplete again.
The problem I haven’t solved yet though is that if the task has no subtasks at all, it reads that as “not all subtasks complete”, so simple tasks are being prevented from completing.
Actually I think I solved my problem by using the AI rules. I just added an “or” condition to have the AI simply check that “Task has no subtasks”. It runs a little slower, but it does seem to work.
(Also, having that required first action be adding a comment was generating annoying notifications, so I changed it to being just a redundant “mark task complete”.)
Hope that helps!
Thanks, Christine, this was helpful!