+ Add Question

API: children field empty for parent task

SB

Hi all,

I am experimenting with the API right now and have found that the children field is empty for all items returned from /API/getUncompletedItems. I created the task and sub-task via the desktop application, and they appear fine in the API. Here's the output I receive for a sample task / sub-task from the webservice:

{"due_date"=>"Fri 11 Apr 2014 23:59:59",
"assigned_by_uid"=>1765400,
"is_archived"=>0,
"labels"=>[1],
"sync_id"=>nil,
"in_history"=>0,
"has_notifications"=>0,
"date_added"=>"Fri 11 Apr 2014 17:44:06 +0000",
"indent"=>1,
"children"=>nil,
"content"=>"task",
"is_deleted"=>0,
"user_id"=>123,
"due_date_utc"=>"Sat 12 Apr 2014 04:59:59 +0000",
"id"=>456,
"priority"=>1,
"item_order"=>8,
"responsible_uid"=>nil,
"project_id"=>789,
"collapsed"=>0,
"checked"=>0,
"date_string"=>"Apr 11"}

{"due_date"=>nil,
"assigned_by_uid"=>1765400,
"is_archived"=>0,
"labels"=>[],
"sync_id"=>nil,
"in_history"=>0,
"has_notifications"=>0,
"date_added"=>"Fri 11 Apr 2014 19:22:32 +0000",
"indent"=>2,
"children"=>nil,
"content"=>"sub-task",
"is_deleted"=>0,
"user_id"=>123,
"due_date_utc"=>nil,
"id"=>457,
"priority"=>1,
"item_order"=>9,
"responsible_uid"=>nil,
"project_id"=>789,
"collapsed"=>0,
"checked"=>0,
"date_string"=>""}

Is this the correct behavior?

Thanks,
Sean

All responses

David Trey staff
Replied on Apr 14, 2014 - 12:23 UTC

Hello Sean,

I have passed your report to our developers and will let you know as soon as they reply.


Best regards,
David

SH
Steve Heckt premium
Replied on Apr 23, 2014 - 00:45 UTC

I just hit this too and would like to know if the "children" field has never been implemented or if it use to work and is now broken and, if the latter, when might it be fixed?

Thanks,

Steve

David Trey staff
Replied on Apr 30, 2014 - 22:36 UTC

Hello,

According to our developers, the children field is deprecated. Please use the SyncAPI instead.


Best regards,
David