Use index as WBS


#1

Because WBS is too deep, it is not conducive to user experience, so we want to replace WBS with index.


#2

Hello,
You can use the getGlobalTaskIndex method or the $index property from the task object to display index in the grid:
https://docs.dhtmlx.com/gantt/api__gantt_getglobaltaskindex.html
Here are examples:
https://snippet.dhtmlx.com/5/53e947479
http://snippet.dhtmlx.com/5/4ae41ca9a
However, that parameter depends on whether the tasks are opened or closed, so, it is not bound to the tasks.
But you can use the getTaskByIndex method to obtain the task object by its index:
https://docs.dhtmlx.com/gantt/api__gantt_gettaskbyindex.html

If you want to show the row number and bind it to the tasks regardless of the opened and closed tasks, you need to implement a custom solution.
Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/5/00c36ee58