Get subtasks of a task

63 views
Skip to first unread message

Jon

unread,
Apr 20, 2021, 11:00:29 PM4/20/21
to Remember The Milk API
I cannot see a way to get all the sub tasks of a task. I can get a task by name and filter down to ensure that only tasks with sub tasks are returned but the response does not list any sub tasks. The account is pro and I have used v=2 as a param. 

What is the plan with RTM, I am not seeing much activity on the forum and these lists. Is there a road map available for customers?

Johan Nilsson

unread,
Apr 22, 2021, 9:00:46 PM4/22/21
to Remember The Milk API
Hi!

What happens if you call rtm.tasks.getList with the ID of a task with subtasks as list_id instead of a list? I haven't tried this myself, so I don't know if it will work. You may get a 320 error code.

// Johan

Robert Ward

unread,
Apr 25, 2021, 6:01:35 PM4/25/21
to Remember The Milk API
My understanding is the way the API and backend works is different than the web interface. To the backend/API every task is a task. It just happens that some tasks are subtasks and therefore have a parent_task_id. 

The way I do it is get the specific parent task(s) I want that have subtasks, then pull the entire list(s). Take all of those parent tasks and compare the parent_task_id with the task_id of the parent tasks. 

Hope that helps.
Rob

Reply all
Reply to author
Forward
0 new messages