Falsche Zeitwerte in der Projects API

Moin,

ich habe habe ein Problem mit den Plan-Zeiten aus der https://api.awork.com/api/v1/projects und der https://api.awork.com/api/v1/projects/projecttasks API.

Im folgenden Beispiel stimmen die (https://api.awork.com/api/v1/projects) Project.plannedDuration aus der API nicht mit den Daten aus awork überein:

Die Daten aus dem Projekt in awork zeigen:
image

Bei den Projecttasks, passen die (https://api.awork.com/api/v1/projects/projecttasks) Taskstatus.totalPlannedDuration in Summe auch nicht zu dem, was awork anzeigt und tatsächlich in den Tasks verplant ist.

Könnt ihr euch das Thema einmal anschauen?

Viele Grüße

Patrick

Hi @patrick.hamer ,

thanks for letting us know. We will take a look and get back to you.

Best wishes

Ian

Hi @patrick.hamer ,

I checked the issue. The project plannedDuration is the sum of all plannedDuration on all tasks in the project and the same as the sum of all totalPlannedDuration of parent tasks (so tasks without a parentId). The totalPlannedDuration of a parent task is the sum of all plannedDuration of all subtasks + the plannedDuration on the task itself.

For this project all values currently match 15778800, so I would need some more information here, which task in particular does not have a correct value.

In the UI for the total planned duration of a project we are also now using another property called totalPlannedDurationWithHierarchy which uses another way of calculating the total, so that TaskLists and parent tasks act as a container.

Example:

tasklist - 1h plannedDuration
parent task in list - 1h plannedDuration, 2h totalPlannedDuration
sub task - 1h plannedDuration

This would result in plannedDuration on the project of 2h (sum of plannedDuration of tasks, tasklist excluded) and totalPlannedDurationWithHierarchy of 1h.

Does this answer your question? If not, I would need a specific example where the times don’t match so I can investigate further. It would be best to open a support ticket for this, as then we can immediately get the exact project etc.

Best wishes

Ian