# Add a Child Task

Source: [https://docs.virtosoftware.com/docs/virto-gantt-chart-web-part/using-virto-gantt-chart-web-part/working-with-tasks-in-virto-gantt-chart-web-part/add-a-child-task/](https://docs.virtosoftware.com/docs/virto-gantt-chart-web-part/using-virto-gantt-chart-web-part/working-with-tasks-in-virto-gantt-chart-web-part/add-a-child-task/)
Product: Virto Gantt Chart Web Part
Updated: 2026-08-12


Sometimes you need to define parent-child relations between tasks in the Gantt Chart Web Part. If tasks list is selected as data source, user can select a task in the Virto Gantt Chart Web Part and add child task to it. If task has at least one child task, it is displayed as a summary task.

![Parent task displayed as a summary task once it has at least one child in the Virto Gantt Chart](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/add_a_child_task_1.png)

To add a child task, click a parent task on the right in the list. The “**+ Child Task**” button will appear. Ise it to create a child task the same way as you do for parent tasks.

![+ Child Task button appearing after selecting a parent task in the Virto Gantt Chart list](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/add_a_child_task_2.png)

To change the level of tasks, you can also use “**Indent**” and “**Outdent**” buttons. For example, I need to make the task “Task 333” a child of the task “Task 0022”. So, I click a task 333 and use “Indent” button.

***Note****: the "Add Child Task" and "Indent/Outdent" buttons are available only incase the list template chosen as a data source is a Tasks template. If note, the buttons do not appear.*

![Using the Indent button to make a selected task a child of another in the Virto Gantt Chart](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/add_a_child_task_3.png)

Now the task “Task 333” is a child task of “Test 00222” task.

![Task nested as a child under its parent after indenting in the Virto Gantt Chart](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/add_a_child_task_4.png)

***Note****: to let parent-child relation possible for your Gantt chart, make sure you choose the list with basic parent ID field. If the SharePoint list you’re going to use as a data source is created in old SP versions or is a custom one, the parent-child relations may not work.*
