Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks Created from different Action Plan #165

Open
2 tasks done
adepew opened this issue Nov 13, 2023 · 1 comment
Open
2 tasks done

Tasks Created from different Action Plan #165

adepew opened this issue Nov 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@adepew
Copy link

adepew commented Nov 13, 2023

Describe the bug
Occasionally I have users tell me they have been assigned tasks from another user on the team and before their controlling tasks have been completed. This occurs when the first user is working with their own tasks and closing tasks. I have a feeling this is related to the action plan templates feature and the task dependencies. It seems like it is selecting controlling tasks that are not related to the action plan the user is working on. I have attached some screenshots below.

Screenshots
As you can see below, the action plan has 0 completed tasks. However, the 3 tasks with controlling tasks have been created, all by the 1st user that was working on their own task lists.
image

Here is the task the first user marked completed which triggers the next task "Check-in call". It was closed on 11/2/2023 at 10:21AM.
image

This task is the one that was created by the prior user and was created at the exact same time as their prior task was closed:
image

  • Action Plans Version (e.g. 4.0.1) (See Setup > Installed Packages)

  • We are on Version 4.2.1

  • Salesforce UI

  • Lightning Experience

  • Org Edition

  • Enterprise

Additional context
I haven't been able to run any advanced debugging logs yet to try and pinpoint the issue exactly, but this is defintely happening for multiple users and action plans. It seems to be an issue with the code that creates an action plan task when dependent tasks are marked completed.

@adepew adepew added the bug Something isn't working label Nov 13, 2023
@adepew
Copy link
Author

adepew commented Jan 17, 2024

Apologies for the delay, I was out on paternity leave. I think I may have found the reason why some closed tasks are creating tasks for other Accounts.

If I query the LabsActionPlans__APTask__c object I am seeing some inconsistencies. In the LabsActionPlans__Action_Plan__c field I see the correct Id for the Action Plan. However, in the LabsActionPlans__Controller__c field I see Ids that are related to other Action Plans that are not for the current Action Plan. It seems this field is used for dependent tasks that need to be created so that aligns with what I am seeing. See below:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant