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.