How to get subtask status from API, if user mark it as completed in task card

I am implementing Asana REST API’s, I am stuck at point where I need to know subtask status (if user mark it as completed in task card). I am only getting three fields as response mentioned below. How I can get status of subtasks. Any idea?

{
“gid”: “1160206299613978”,
“name”: “Remove the Notes column from the datatable.”,
“resource_type”: “task”
}

Hi @Shobhit_Singh and welcome to the forum!

What API endpoint are you currently using to get the subtask information?

https://app.asana.com/api/1.0/tasks/task_gid/subtasks

You can get any field you need by using opt_fields parameter.
example
https://app.asana.com/api/1.1/tasks/xxx/subtasks/?opt_fields=name,completed,modified_at

1 Like