I am trying to create automations within a task board.
Essentially i’m creating a parent/child relationship - Task B is dependent on Task A doing something. For example, Task B status will update to in progress when Task A status is changed to complete.
To extend this I have created a copy list of tasks function.
If a user copies a list of tasks, and a child task is in the list but not the parent, I ask if the parent should also be copied.
The issue i have is when a parent is introduced to the list of tasks to copy, I also want to add the grand parent task to the list if the parent task has a parent, and continue this cycle until all tasks in the list to copy include their parent tasks.
At the moment I am achieving the outcome by provisioning a number of states that collect the next level of parent tasks but this is not ideal for obvious reasons.
The next issue is how to copy the list of tasks in the right order so a copy of a parent task is created before the child.
Has anyone that has built a solution to solve this type of requirement got any tips?
Thanks in advance!