I've created a custom task field called status. When I make a change, i.e. set percentDone to 100%, I update a number of related tasks server-side. The sync operation returns those related tasks in the tasks updated list (for each task the id and the new status field).
As I understand from the docs, the updated tasks should be refreshed in the Gantt diagram automically. But this doesn't happen. If I reload the page, and thus force a reload of all the data again, I do see the updated data. Am I missing something? I'm using auto sync
transport: {
load: {
url: 'https://localhost:8080/api/planning',
},
sync: {
url: 'https://localhost:8080/api/planning',
method: 'PUT'
}
I've defined the status field on my custom task class as
{name: 'status', dataSource: 'Status', type: 'string'},
And my server-side sync operation returns:
{
"success": true,
"requestId": 16182353987171,
"revision": 1,
"tasks": {
"updated": [
{
"id": 1151,
"status", "updated"
},
{
"id": 1152,
"status", "updated"
},
{
"id": 1154,
"status", "updated"
},
{
"id": 1153,
"status", "updated"
},
{
"id": 1150,
"status", "updated"
},
{
"id": 15,
"status", "updated"
}
]
},
"assignments": {
"added": []
}
}
AFAIK, I don't need to trigger a refresh manually, do I?