We will need tasks indented to make clear Parent/Child relationship. Similar to sample here : https://docs.dhtmlx.com/gantt/samples/08_api/08_export_other.html
when click on export to excel.
let config = { open_tree_initially: true };
config = this.defaults(config, {
name: “gantt.xlsx”,
data: this.gantt._serialize_table(config).data,
columns: this.gantt._serialize_columns({ rawDates: true }),
version: this.gantt.version,
server: “http://localhost:8199”
});
this.gantt._send_to_export(config, “excel”);