Split tasks and grouping

Is it possible to have a split task show all along a single line, but also group by something, for example user.

So that all the user’s tasks show within the group, but that each task is split and shows all along the same line for each task?

Hello, @Dominic_Glenn

If I understand you correctly, you want to show the split tasks, which can be grouped by one category (by owners and department, for example).

Demo: https://snippet.dhtmlx.com/f130bc4c0

First of all, we create a list of options (department and staff) with the help of serverList and add a new column in the grid and new option in the lightbox.

After the initialization, the function combineLists creates a deep copy of the data, connects the options of the lists (department and people) and returns the result.

The function split_virtual_tasks searches for the virtual tasks (with $virtual property). If the split_toggle is true the function sets the split value in the render property.

The function toggleGroups switches the group mode (grouping enabled/grouping disabled). If it’s enabled, the values of people and department are shown in the group, which were created with the help of the combineLists function. if the gantt.$groupMode is false, the tasks will be displayed in the usual way (without grouping). Thus, the split tasks will be shown, if you group the tasks (click on the ‘Show Gantt view’)

If this way of solving your issue doesn’t help you, can you please describe in detail, how actually it should work to have an opportunity to help you. Also, you can use the snippet below to repeat your problem and sent the additional sources (images, gifs and etc.)