Cannot create a webhook for "My Tasks"

projects
tasks

#1

I have already know how to create webhooks for projects and tasks. However, when it comes to “My Tasks”, I cannot find a way to create a webhook to callback some events. Is there any way to create a webhook for “My Tasks” section or should I do polling for it?


#2

Hi @Bahadir_Yurdakul,

Sorry to hear you’re having trouble here. A users My Tasks list is essentially like any other project in Asana’s data model, so you can absolutely create a webhook on it.

For your resource ID, you’ll want to use the My Tasks list ID. You can find that by visiting a user’s My Tasks list in Asana and checking the address bar:

https://app.asana.com/0/<my-tasks-id>/list

Let me know if that helps or if you’re receiving any errors when you try to create this webhook.


Getting a user's "My Tasks" Project ID
#3

Thank you for your answer. I want to get its id from the api. Which request should I use?


#4

Hi @Bahadir_Yurdakul,

Unfortunately, this is not a use case we support in a first-class manner - these projects aren’t returned from the Projects and Workspaces endpoints, and even querying on tasks in the project that are only in one’s “My Tasks” come up as having no projects associated with them.

If copying the ID from the URL will not work (say you’re trying to automate this for multiple users), I would suggest instead creating a new project, having a user add their tasks to that project, and then use that project for webhook tracking.


Getting a user's "My Tasks" Project ID