# Task Completed + Webhooks API

**URL:** <https://forum.asana.com/t/task-completed-webhooks-api/1699>\
**Category:** Product Ideas\
**Created:** [12 April 2017 19:04 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699 "2017-04-12T19:04:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Keichinger](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/james_keichinger/32/2302_2.png) [@James\_Keichinger](https://forum.asana.com/u/James_Keichinger)\
**Post date:** [12 April 2017 19:04 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/1 "2017-04-12T19:04:02Z")

</div>

I have web hooks setup and getting events of the project but when a task is completed, there is no obvious information to signify the task was completed. All I can see is that I get a task changed status and then when requesting the task the Completed property is true, but there is now way for me to tell if that is new or not and in most cases I am getting multiple events of the task has changed in this case which is not good? Am I missing something? Any advise or information on how to capture the completed event of a task would help. Thanks!

---

<div class="post-metadata">

**Author:** ![James\_Keichinger](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/james_keichinger/32/2302_2.png) [@James\_Keichinger](https://forum.asana.com/u/James_Keichinger)\
**Post date:** [12 April 2017 21:38 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/2 "2017-04-12T21:38:29Z")

</div>

So I was able to accomplish what I needed to do by watching the events to new stories and watching for the system story of the task being completed. Not sure if this is the recommended way though it works. Any advice is appreciated.

---

<div class="post-metadata">

**Author:** ![Matt\_Bramlage](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/matt_bramlage/32/145_2.png) [@Matt\_Bramlage](https://forum.asana.com/u/Matt_Bramlage)\
**Post date:** [12 April 2017 22:02 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/3 "2017-04-12T22:02:33Z")

</div>

Hey, James, I moved this over to the Platform Feedback subcategory.

Yeah, our webhooks could be a little bit more explanatory, and we’ve identified this as a potential improvement. And you aren’t alone in simply monitoring the stories of a task as well; for some flows that’s really the only way to do it. It’s not ideal, because stories are designed to be informative and weren’t created as an audit log (for instance, you can delete them), but if you’re OK with that risk it works.

Finally, the only other thing I want to warn you about is internationalization: if you never change locale, you probably won’t have any issues, but if a user in a different locale uses your integration, the phrase might become translated - we’re not sure quite yet what to do about that. So keep an eye out!

On the bummer side, there really isn’t a better way than either re-fetching the task or reading the story ☹ but we definitely have identified both as API opportunities!

---

<div class="post-metadata">

**Author:** ![Eyal\_Ronel](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/eyal_ronel/32/2418_2.png) [@Eyal\_Ronel](https://forum.asana.com/u/Eyal_Ronel)\
**Post date:** [14 May 2017 07:47 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/4 "2017-05-14T07:47:32Z")

</div>

May I suggest the same request for task deletion.

Would be nice to have action=removed or action=deleted in the event payload, instead of having to query for a non-existing task and handling the “not found” response.

Thanks

---

<div class="post-metadata">

**Author:** ![Rafael1](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/rafael1/32/19913_2.png) [@Rafael1](https://forum.asana.com/u/Rafael1)\
**Post date:** [17 July 2018 12:43 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/5 "2018-07-17T12:43:08Z")

</div>

Hey Just a question on if this has been updated?

My use case is that I have a workflow that needs to be triggered whenever a task is completed.

Right now I run the risk of misfiring that workflow because someone updated a description or tagged the task after completion.

What would be amazing would be to add add a category to the action called completed for tasks

Any plans on a solution like this in the near future?

---

<div class="post-metadata">

**Author:** ![dedania.dipen](https://luna1.co/8d76cd.png) [@dedania.dipen](https://forum.asana.com/u/dedania.dipen)\
**Post date:** [10 November 2018 18:10 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/6 "2018-11-10T18:10:00Z")

</div>

Any update on this guys ?? I would like to achieve the same. @Rafael1 @James_Keichinger @Eyal_Ronel

Currently I’m getting event object as below  
{  
“resource”: \*\*\*\*\*434718,  
“user”: \*\*\*\*\*702907924,  
“type”: “task”,  
“action”: “changed”,  
“created\_at”: “2018-11-10T17:55:20.760Z”,  
“parent”: null  
}

And somehow events are firing multiple times so it’s not worth call one more API to check for status, whether it’s completed or not.

---

<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:** [10 November 2018 23:02 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/7 "2018-11-10T23:02:59Z")

</div>

No, there’s no update in this area.

Also please be aware that, as Matt said, stories are not a reliable way to get information on events. As he stated. they were never designed to be an audit trail. In addition to the fact that they can be deleted as he mentioned, it’s also the case that _story events are not sent in all cases_. If multiple changes to a particular property of a particular object are made by the same user within a 24-hour period, without any intervening changes to that property by another user, then no story events are sent for any of the changes after the first one.

---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [7 February 2019 07:33 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/8 "2019-02-07T07:33:11Z")

</div>

> [@Phil\_Seeman](#):
>
> they were never designed to be an audit trail

What is it useful for if not an audit trail then? 🤔

---

<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:** [7 February 2019 16:25 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/9 "2019-02-07T16:25:44Z")

</div>

That’s an excellent question! It does provide a history of many activities/changes on a task, but not all. In my personal view, if you can’t count on it to report on all, then its data is suspect. But I guess you could take the counter view - which apparently Asana does - that some data is better than none.

To be clear, their goal is sensible: they’re concerned that if they reported on ALL changes, the history list would be looooooooooong and thus unwieldy. I get that. But I think that their decision to make the cutoff point about 24 hours - i.e. all consecutive changes by one user within 24 hours are skipped, only the most recent is included - is too large a timeframe. I could see maybe 1 minute or 5 minutes at most.

---

<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:** [27 April 2022 13:54 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/10 "2022-04-27T13:54:24Z")

</div>

Closed on 27 April 2022 13:54 UTC



---

<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:** [27 April 2022 16:47 UTC](https://forum.asana.com/t/task-completed-webhooks-api/1699/11 "2022-04-27T16:47:20Z")

</div>

Unlisted on 27 April 2022 16:47 UTC


