Because WBS is too deep, it is not conducive to user experience, so we want to replace WBS with index.
You can use the
getGlobalTaskIndex method or the
$index property from the task object to display index in the grid:
Here are examples:
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:
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: