# Automation issue - Enrolment's task activity based acts weird

**URL:** <https://community.hubspot.com/t/automation-issue-enrolments-task-activity-based-acts-weird/118580>\
**Category:** CRM\
**Tags:** workflows\
**Created:** [October 17, 2024, 1:55pm UTC](https://community.hubspot.com/t/automation-issue-enrolments-task-activity-based-acts-weird/118580 "2024-10-17T13:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FilipRas](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@FilipRas](https://community.hubspot.com/u/FilipRas)\
**Post date:** [October 17, 2024, 1:55pm UTC](https://community.hubspot.com/t/automation-issue-enrolments-task-activity-based-acts-weird/118580/1 "2024-10-17T13:55:37Z")

</div>

One of our Pipelines that has one big workflow with tasks etc. has this specifications:

**Automatically trigger enrollment when filter criteria is met:**

The deal is associated to: **Any Activity**

and this has all of the Task status is any of the Completed

----------------------basically, a deal moves to another stage when all of the tasks have been completed in the stage where it currently sits-

This is our scheme:

STAGE

|

Task

|

Task

|

Branch \> Yes \> Branch \> Opt 1. moves onward

Opt 2. moves to another place

Branch \> No \> [after some tasks loops to Branch Yes]

However, what I have found today is:

Despite **Any Activity - Task Status = Completed,** deals have been moving onward when one of the tasks hasn’t been completed.

**Any thoughts? Why is that happening, especially when this works perfectly fine in the other stages?**

**PS.** So far, the only solution I have found is to set up a delay of X days with event occurrence to complete the previous task.

**Thanks**

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [October 17, 2024, 1:58pm UTC](https://community.hubspot.com/t/automation-issue-enrolments-task-activity-based-acts-weird/118580/2 "2024-10-17T13:58:39Z")

</div>

Hi @FilipRas,

> * * *
> 
> Despite **Any Activity - Task Status = Completed,** deals have been moving onward when one of the tasks hasn’t been completed.
> 
> * * *

The filter for any associated completed task really means just that. There must be at least one – it doesn’t mean that all associated tasks must be completed.

The exact solution here depends; I don’t have all of the context.

One approach could be to specify that a deal must be associated to an activity with a specific _Task title_ that is completed, before it can move on. This poses challenges for the enrollment criteria, so you might have to move this check into an and/or branch after enrollment.

Best regards!

---

<div class="post-metadata">

**Author:** ![FilipRas](https://avatars.discourse-cdn.com/v4/letter/f/c6cbf5/32.png) [@FilipRas](https://community.hubspot.com/u/FilipRas)\
**Post date:** [October 17, 2024, 2:03pm UTC](https://community.hubspot.com/t/automation-issue-enrolments-task-activity-based-acts-weird/118580/3 "2024-10-17T14:03:38Z")

</div>

Thanks a lot for this!
