Hidding parent tasks


Is it possible to hide all parent tasks and display only the sub tasks?
For example when a button is clicked.


Yes, it is possible to do that using onBeforeTaskDisplay event handler:
However, if the task is hidden, because its parent is collapsed, such a task won’t be displayed.
Here is the snippet:


Hello team, it is possible to only block the parent tasks??


Answered here: Unlock a parent task. Please don’t duplicate the same question in many places.