Search code examples
asana

How to query stories for type="comment"


I'm new to REST and the Asana API so forgive me for asking what could be a very basic question!

I am basically trying to get a list of all the Comments for a particular task.

I have tried using \stories?type="comment" but this does not seem to work and returns all the story items, what am I doing wrong?


Solution

  • Currently, you can't filter this via the API and need to filter on the client side. We're working on a new, more powerful querying feature, but a) this is still early in the design phase and b) it will probably come to tasks first.

    In general, we prioritize the things that currently can't be done via the API over the things that can be done, but require a little work on the client side. If someone wants to search a whole workspace for tasks that match a given query, that's something you can't really do at all via the API, so we'd see that as higher priority than something like this, where it's comparatively easy to filter down to only comments on the client. That's not to say we don't care about those features, and we'd like to do them all, but we only have so many hours in the day so we have to prioritize.