Set properties for virtual tasks

I’m using groupBy() and would like to have each group default to the split-task view. How can I set open = false and render = 'split' for these virtual tasks?

Hello,
To iterate tasks, you need to use the eachTask method:

There, you need to check the $virtual property of the task object and modify the properties of the group tasks:

Then you need to call the render method to repaint the changes:

Here is an example of how it can be implemented:

Thanks! The snippet worked perfectly after I changed task.open = false to task.$open = false.