Problem mit Custom-Task-Toggles bei Projekten
Hallo,
wir haben folgendes Problem, das reproduzierbar seit einigen Monaten auftritt:
Wir verwenden für unsere Projektabrechnung Custom Fields bei Tasks. Im konkreten Fall ist es ein Toggle, mit dem bestimmt wird, ob ein Task mit Stundensatz X oder Y verrechnet wird.
Beispiel.
Bei einem Projekt haben wir eine Taskliste mit 13 Tasks darunter. Überall haben wir im Browser bei allen Tasks das Toggle auf „on“ gestellt.
Rufe ich nun den Toggle-Status via API ab, kommt hier oft ein falscher Status zurück, der nicht dem übereinstimmt, was im Browser gerade angezeigt wird.
Aktuell lässt sich das Problem „beheben“, indem bei den Tasks das Toggle unzählige Male auf on/off geschoben wird, bis bei der API irgendwann Mal der richtige Status zurückkommt.
Ich bin mir nicht sicher, ob das Problem schon dauerhaft so besteht. Aber seit mindestens ~2 Monaten ist das so.
Hi @thomas.poechtrager, can you give me an example of a task and the custom field, ideally the request you’re making or a trace id of where this is wrong? Then we can take a look. Thank you
Hi Sebastian,
I made a demo video that demonstrates the issue: https://drive.google.com/file/d/1kx0QQTAnrBOQYkH1qRhRDyLMXOoMnltY/view
Project and task list: awork.com – see URL.
First, I show that Junior Hourly Rate is disabled for all tasks, including via the API.
Then I enable Junior Hourly Rate for tasks a, b, and c.
After that, the UI breaks and shows Junior Hourly Rate as enabled for all tasks except task h.
However, the API still returns it as enabled only for tasks a, b, and c. - I also explicitly set it for task h in the video.
Let me know if you are unable to reproduce it and still need a trace ID.
Python script using the API: gist:66b8d61b31083dd030b08876933dcc8a · GitHub
API key must be set.
Hi @thomas.poechtrager the team has taken a look and this should be fixed now. Could you try this again and let me know if it works now? Thank you!
Thanks for the quick fix.
It’s better now.
There is still a race condition/synchronization issue when quickly toggling the custom field.
It appears to happen when toggling the custom field faster than ‚syncing‘ disappears.

However, the fix is good enough for us now.
Thank you.