Can't get tag name for a particular tasks

I am using the web url to get all the tasks from a specific project. I want to see what tags are attached to each tasks, but right now all I’m getting is the word “tag” when there is a tag on that task.

Here is my URL: https://app.asana.com/api/1.0/projects/xxxxxxxxxxxxxxxx/tasks?opt_fields=name,completed,tags,due_on

Here’s what the output looks like

Hey @anon2598214 , welcome to the developer community!

I believe the fix for you is to add .name to tags if you want the response to include the tag’s name.

Here’s an example URL to fetch the tags in a project:
https://app.asana.com/api/1.0/projects/<project-gid>/tasks?opt_fields=tags.name&opt_pretty=true

3 Likes

This topic was automatically closed after 6 days. New replies are no longer allowed.