# Triggering from a subtask completion?

**URL:** <https://forum.asana.com/t/triggering-from-a-subtask-completion/106956>\
**Category:** API & Developers\
**Created:** [20 January 2021 04:38 UTC](https://forum.asana.com/t/triggering-from-a-subtask-completion/106956 "2021-01-20T04:38:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Moore1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jeff_moore1/32/68184_2.png) [@Jeff\_Moore1](https://forum.asana.com/u/Jeff_Moore1)\
**Post date:** [20 January 2021 04:38 UTC](https://forum.asana.com/t/triggering-from-a-subtask-completion/106956/1 "2021-01-20T04:38:21Z")

</div>

Are we able to trigger from a subtask being complete?  
Reading the webhook docs, its a bit confusing on this event. Do we register a webhook for completed subtask?

Also, i have field where we are putting in a custom ID. So when this subtask is complete, i’d like to recall the custom ID that was placed. Is this possible? can you make the completion of the task dependent on the input of the field? thx

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [20 January 2021 18:56 UTC](https://forum.asana.com/t/triggering-from-a-subtask-completion/106956/2 "2021-01-20T18:56:15Z")

</div>

> [@Jeff\_Moore1](#):
>
> Are we able to trigger from a subtask being complete?  
> Reading the webhook docs, its a bit confusing on this event. Do we register a webhook for completed subtask?

While I haven’t done it, you should be able to create a webhook filter for `completed = true` so you only get webhooks for completed tasks.

As to subtasks, the only way to know if a task is a subtask is that its `parent` property would have a value. I’m not sure how you would create a webhook filter for `parent is not null`; I guess you could play around with it and see if such a filter is possible, but I’m skeptical. Perhaps others have tried this and can weigh in. My guess is you’ll create a filter for all completed tasks per above, and then when you get a webhook event, you’ll have to check its `parent` property to see if it’s a subtask.

> [@Jeff\_Moore1](#):
>
> So when this subtask is complete, i’d like to recall the custom ID that was placed. Is this possible?

Sure. when you get the webhook event, just do a call to retrieve the details for that task and it will include the custom fields and their values.

> [@Jeff\_Moore1](#):
>
> can you make the completion of the task dependent on the input of the field?

No, there’s no supported way for an external app to intercede in the Asana UI to block the ability to complete a task.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:06 UTC](https://forum.asana.com/t/triggering-from-a-subtask-completion/106956/3 "2025-05-30T19:06:08Z")

</div>

Closed on 30 May 2025 19:06 UTC


