Page 1 of 1

How to update tasks and columns on the fly?

Posted: Mon May 29, 2023 5:35 pm
by brodriguez

Hello, we are working with a Bryntum TaskBoard that has a combo to change the columns dynamically. Every time the user changes the value in this combo, we should update the columns and the tasks on the fly. We were able to achieve it for the columns but not for the tasks. Once the columns are updated in the view, all the tasks are gone.

We need to update the status field in each task. We have the right data but canĀ“t find the way to update/refresh the taskboard view based on the new columns criteria.


Re: How to update tasks and columns on the fly?

Posted: Mon May 29, 2023 7:09 pm
by marcio

Hey brodriguez,

If I understood correctly what you want to achieve, you can use the following

taskboard.project.taskStore.getGroupRecords()

https://bryntum.com/products/taskboard/docs/api/TaskBoard/store/TaskStore#function-getGroupRecords

And from there update using the following method for each task
https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/TaskModel#function-set

record.set('status', 'new status');

Is that what you're looking for? If not, could you provide a sample project with your configuration? You can get more info here https://www.bryntum.com/forum/viewtopic.php?f=1&t=772