Page 1 of 1

Move multiple tasks to different column

Posted: Mon Sep 19, 2022 12:45 am
by plugins-welcome
column 1     column2
------------------------------
task 1           task 2
task 3           task 4
task 5

On moving task 1 to column2, I want task 3 to move to column2 too. Is there any way I can do that?


Re: Move multiple tasks to different column

Posted: Mon Sep 19, 2022 8:27 am
by tasnim

Hi,
To achieve that you can use this https://bryntum.com/docs/taskboard/api/TaskBoard/feature/TaskDrag#event-beforeTaskDrag event

    listeners : {
        beforeTaskDrag({ source : tBoard, taskRecords }) {
            if (taskRecords[0].id === 6) {
                const task = tBoard.project.taskStore.getById(8);
                taskRecords.push(task);
            }
        }
    }

Re: Move multiple tasks to different column

Posted: Mon Sep 19, 2022 4:32 pm
by plugins-welcome

Thanks!