Search code examples
phptagsasanaasana-api

How to get tag id by its name via asana api?


I want asana tag id if i provide tag name via asana api call. Is there any method from which i can directly achieve this?

Alternative, i can get all the tags in workspace and filter through it matching with my id but this will be long process.

Any method like getTagID(tagName) ?? yes i can get reverse of this getTag(tagId)

FYI, i am using php wrapper for asana api (https://github.com/ajimix/asana-api-php-class)

Thanks.


Solution

  • Try the Typeahead API - it lets you search of items in Asana (like tags) by text. (Since you could have multiple tags with the same name, we can't just do getTagID(tagName) but this is pretty close.)