Fehlende Werte in der ProjectTasks-API

Moin,

ich habe ein Problem mit den Remaining-Werten in der API.
Wenn ich die Daten aus https://api.awork.comapi/v1/me/projecttasks abrufe, sind die Werte Tasks.remainingDuration und Tasks.totalRemainingDuration teilweise leer, obwohl es eine Geplante Zeit und erfasste Zeit gibt.
Im folgenden Beispiel ist ganz gut zu erkennen, wie inkonsistent die remainingDuration berechnet wird.

Ihr könnt ja mal nachschauen, woran das liegen könnte. Ich bin da ehrlich gesagt ratlos, da ich auch kein Muster erkennen kann.

Viele Grüße

Patrick

Hi @patrick.hamer ,

thanks for letting us know. The remaining duration should always be updated of course. We will take a look and get back to you.

Kind regards

Ian

Hi @patrick.hamer ,

sorry for the delay. The RemainingDuration and TotalRemainingDuration have been deprecated for quite a while now. I will update the changelog on the developer docs as those properties will be removed at the end of the year.

They can be easily calculated:

RemainingDuration = PlannedDuration - TrackedDuration

TotalRemainingDuration = TotalPlannedDuration - TotalTrackedDuration

Hope this helps.

Best wishes

Ian

Hi Ian,

Thanks for your reply.

I already calculate the remaining time, but I don’t like to do calculations in my queries when the data is supposed to come from the system. But now I know, and I’ll remove the remaining data from the queries and leave the calculations in.

Kind regards

Patrick