Copy Subtasks for Template

I have a Table with Subtask. They reference on to the same table.
Now i have a project template from which i want to copy selectet task with subtasks to the Task Table. It works, but i cant figure out how to make a relation in the Task table. Chat GPT didnt figure it out neither.
my code so far:

[Task Template].Filter(Add = True).ForEach(
AddRow(
Tasks,
Tasks.Titel, CurrentValue.Maintask, Tasks.Subtasks,CurrentValue.subtasks
)
)
Any Ideas?

i figured it out, I needed to use Withname() and Chatchpt. Also i needet to make two buttons, one to add maintasks and one to ad Subtasks. Which is not needed but easier to diggest the nesting.

H! Despite the fact that you have found a solution, I am attaching a document with another implementation option for similar subtasks and a template system. I would be glad if it proves to be useful. :nerd_face:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.