Hi there,
I’m currently extracting subtasks from the Asana API using Python. I’ve stored a list of task_ids (similar to task[‘gid’] generated from the GET tasks endpoint) but I end up with an access error.
subtasks = client.tasks.get_subtasks_for_task(task, {"opt_expand": "name, \
projects, workspace, gid, due_on, created_at, start_on, modified_at, completed, \
completed_at, assignee, parent, notes, tags, team, memberships"}, iterator_type="items")
Do you know how I can resolve this? The current script is looking through task ids and extracting subtasks from private projects, but the task ids are all tasks that were extracted using the same personal account token.
Thanks,
Mae
Please read this before posting
- If you received an error from the API that you’re looking for help with, please include the error in your post and be descriptive of the requests you made that received the errors. To be clear, we need the error in the JSON response from the API, not the error your code raised.
- Do not share any API credentials. Please check that the code you’re pasting into the post does not contain any real OAuth tokens or personal access tokens. If you have exposed credentials, you should revoke them immediately.