Get Comments

For a given task, is there a way to get comments of said task?

Hi @Jack_Remmert

You can’t get “only” comments, as they are special kind of stories (task history).

So, you must query for all stories of that task, as described here
GET /tasks/{task_gid}/stories

Then, filter the result with type = “comment”.

Because they’re hard to get and you must do a separate query for each task, my suggestion is always to keep them in a local cache, and use “task.modified_at” to invalidate your local cache and update the stories.

1 Like

@Frederic_Malenfant is correct, but I’d like to make one tweak: the type field on stories is deprecated—it’s leftover from when we didn’t have a great way to express the variety of stories in the API, and we’ve kept it in the API only for backwards compatibility. Instead, you should look at the resource_subtype field for a "comment_added" story.


Thanks for the tip, I’ll update Bridge24 to use that filter.

I think you should update the documentation, as I copied it from

In the samples on the right, we can see the new resource_subtype = “comment_added” property, but also the deprecated type = “comment”.

1 Like

Hey guys, I built an integration between Asana and another project management software(Odoo Project.) And I have a webhook setup to get me the updates that take place on a project and it’s task. The issue is that when I use the integration with a paid Organization, I get the event that has recourse subtype comment_added , yet when I use a free workspace to test my integration I never get that event. Does this event get sent out only when we are using an Organization? What can I do to make my integration work with both types if I am right? Thank you in advance :blush: