Our flexible Kanban board for managing tasks with drag drop


Post by Qwerty »

Hi Bryntum team.

We are setting up the TaskBoard to use the single assignment of resources. Upon doing so, the task menu and the task editor allow the selection of multiple resources (in the task editor, even though many users are selected, the las selected user is not assigned to the task). I've attached a GIF of this behaviour.

This is the code we are using (in ReactJS):

        <BryntumTaskBoard
            ref={taskBoardRef}
            {...{
              features: {
                columnToolbars: true
              },
              project: {
                resourcesData: [
                  { id: 1, name: 'User 1' },
                  { id: 2, name: 'User 2' },
                  { id: 3, name: 'User 3' }
                ],
                assignmentsData: [
                  { id: 1, eventId: 11, resourceId: 1 },
                  { id: 2, eventId: 12, resourceId: 2 },
                  { id: 3, eventId: 13, resourceId: 3 }
                ],
                tasksData: [
                  { id: 11, name: 'Task 11', columnId: '1' }, // , resourceId: 1
                  { id: 12, name: 'Task 12', columnId: '2' }, // , resourceId: 1
                  { id: 13, name: 'Task 13', columnId: '3' } // , resourceId: 1
                ],
                taskStore: {
                  singleAssignment: true
                }
              },
              columnField: 'columnId',
              columns: [
                { id: '1', text: 'Column 1', color: '#808080' },
                { id: '2', text: 'Column 2', color: '#FEA521' },
                { id: '3', text: 'Column 3', color: '#1FA0F5' }
              ]
        }}

I've tried several combinations of the options that can affect this single assignment: using assignmentData, singleAssignment: true, and resourceId for taskData.

Is this a bug, or am I missing something in the configuration process?

Thanks in advance.
Damian Demasi.

Attachments
Dec-14-2022 11-27-45.gif
Dec-14-2022 11-27-45.gif (2.29 MiB) Viewed 893 times

Post by tasnim »

Hi,
Set it like this

project : {
	taskStore : {
		singleAssignment : true
	}
}

it will work.

Please let us know if you have any other questions


Post by Qwerty »

Hi Tasnim, thanks for your reply.

If you check the code I shared in my first message, we are already including the singleAssignment: true element in the taskStore object inside the project object. Using that configuration, we get the results shown in the GIF that's attached to that message.


Post by tasnim »

Sorry that I've not noticed that. I've reproduced that. Here is the ticket https://github.com/bryntum/support/issues/5784
We'll investigate it.

Good Luck :)


Post Reply