Webhook events for subtasks deleted with parent task

When a parent task is deleted in Asana, its subtasks are automatically deleted as well. However, I’ve noticed that webhook events are only sent for the parent deletion, and not for the subtasks.

Do you have any plans to provide webhook events for subtasks that are deleted as part of a parent task deletion?

Hi @Cem_Gurbey , I don’t think this is true. Last time I checked, the subtasks still exist, but become orphaned. You can test this by searching for them after deleting their parent task.

I just did a quick test and believe when a parent task is deleted, its subtasks are deleted, except those that are multihomed.

Thanks,

Larry

2 Likes

Interesting, not sure that was always the case. At least not until recently, but my memory may not serve me in this case.
Leaving multi-homed subtasks undeleted makes sense, yes.

I can’t recall either.

I was kind of expecting assigned subtasks would not be deleted but they are. That makes it not parallel exactly with deleting a project with tasks assigned which are not deleted.

Exactly!
hmm.. :thinking:

1 Like

I’m sure this is because the webhook is set at the project level, so it’s watching for deletions for objects attached to the project, but subtasks aren’t (by default) attached to their parent’s project, so you don’t get a deleted webhook for it.

I tested this and when my subtask was not attached to the project, I got no webhook when deleting its parent.

When my subtask WAS attached to the project, I DID get a webhook when deleting its parent. HOWEVER, the behavior is not exactly what you’d expect: the parent task emits a deleted webhook, but the subtask emits a removed webhook. So you’d need to have removed as part of your filter in order to get those webhooks.

(FYI I moved this thread to the English Forum > Developers & API forum section.)

2 Likes

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