There is a field "aggregateprogress " in the returned JSON object from API which probably should show all aggregated time from worklogs of tasks and subtasks of tasks, but it doesn't. Calculates only children's tasks without them subtasks.
How is possible to get or calculate the aggregated time?