If it isnt possible it would be nice to have sub tasks in the gantt chart. So that I can expand the row and get a sub-gantt for that task.
The Gantt API will be extended in the near future.
At this moment you need to use viewType="Resources" and fill the Resources collection as necessary.