I had this need when working with a client earlier today.
Enter webhooks by Zapier to the rescue!
Here's what you need:
Here's what it looks like. I put some text with placeholder values below the image.
https://app.asana.com/api/1.0/workspaces/{workspace ID}/tasks/search?assignee.any={user ID}&projects.any={project ID}
{
"data": [
{
"gid",
"resource_type",
"name",
"resource_subtype"
}
]
}
To get more granular with your data pull, check out the developer documentation.
You do not need to put the IDs in quotes, just enter them like 1234567890 in the URL.
When a certain stage is hit in HubSpot, it will ensure some criteria is met, then it looks up a property from HubSpot to determine an Asana project to duplicate and rename the new project to the deal name in HubSpot. From there, it reassigns some placeholder assignees for all tasks in the project based on HubSpot user properties.
There's a couple other minor things the Zap does but duplicating an existing project and reassigning in bulk was the main objective.
The step above was key to accomplishing the bulk reassignment. As of now, Zapier only allows you to update one Zap at a time. Fortunately, the tasks you retrieve can be looped, but that's another post.
Have questions, issues, or need to point out something I failed to address? Post a comment below.
Want to talk more in depth about this Zap or other automation ideas. Reach out to me via my contact info below.
Happy Automating!