I am trying to duplicate a project via the API and in doing so, my project overview isn’t coming with it.
Basically i want to include a video tutorial from my Loom with every project on the overview.
What is the parameter to include to do this?
How do i basically include all??
the API docs don’t really have all the included parameters. Can someone provide all project included parameters and task included parameters available?
Thanks
The project overview was introduced last week, I would not be surprised if the API was not 100% compliant yet.
1 Like
There are the include parameters I’m aware of (from my C# code):
values.Add("include[0]", "members");
values.Add("include[1]", "task_notes");
values.Add("include[2]", "task_assignee");
values.Add("include[3]", "task_subtasks");
values.Add("include[4]", "task_attachments");
values.Add("include[5]", "task_dates");
values.Add("include[6]", "task_dependencies");
values.Add("include[7]", "task_followers");
values.Add("include[8]", "task_tags");
values.Add("include[9]", "task_projects");
values.Add("include[10]", "forms");
@Ross_Grambo , am I missing any? How about the project overview that @Jeff_Moore1 is asking about? Thanks!
EDIT, 11/18/2022:
Here is a more up-to-date list, courtesy of @Ian_Grant :
Just to help anyone who encounters this. What I have done is converted all my templates into projects in a separate space and I’m using the API call Duplicate a project to duplicate new projects from them. See example:
new_project = client.projects.duplicate_project(project_gid: ‘xxxxxxxxx’, name: ‘New Project’, team: ‘xxxxxxxx’, include: [‘notes’, ‘rules’, ‘forms’, ‘task_templates’])
This works fine but something to note is that the API docs don’t tell you all the ‘include’ options available…
1 Like
Sadly, the full Project Overview is not available yet. However you can get just the text part with notes
Here’s the full list:
archived,
color,
created_at,
current_status,
custom_fields,
custom_field_settings,
default_view,
due_on,
due_date,
followers,
is_template,
layout,
members,
modified_at,
name,
notes,
owner,
permalink_url,
public,
resource_type,
start_on,
team,
workspace
(The code formatter is auto-bolding public)
1 Like
@Ross_Grambo I think forms
is missing from the above list; I know I can put include=forms
and it duplicates the template’s form if there is one.
Also, are you sure all of these are valid to use in duplication include
statements? I just ask because Joe initially supplied a much different list in his announcement:
Hello everyone, we have some new API endpoints to share with you that allow you to duplicate tasks and projects in Asana! Special thanks to @Sasha_S for driving this project and the implementation!
You can now make a call to POST /projects/{project_gid}/duplicate to kick off an asynchronous “job” that will make a copy of a project and all its tasks, just like it would when a user duplicates the project in the Asana UI. The response of this call will be a new “job” object detailing the st…
1 Like
Hi everyone! Has anyone seen whether the overview is available in the API yet?