Duplicating Project/Template doesn't duplicate subtasks

I have setup a project in Asana that will be used as a template for many new projects that will be created using the API. They all need to have the same tasks and subtasks. However, when I use the API endpoint /duplicate, it is only duplicating the tasks, not the subtasks. Is this working as intended? Duplicating through the UI duplicates both, so this seems inconsistent.

Any help would be great. Thanks!

Actually found the answer in another question. I had tried to include subtask, but finally got an error message explaining it:

"include": [ "task_subtasks" ],

Include options:
{forms, members, notes, task_assignee, task_attachments, task_dates, task_dependencies, task_followers, task_notes, task_projects, task_subtasks, task_tags}

1 Like