When a task is created from a Flow that contains a Subflow component, the system automatically creates one or more subtasks linked to the main task. This guide explains how main tasks and subtasks appear in the Task list, how data flows between them, and how to assign, move, edit, and delete them.Documentation Index
Fetch the complete documentation index at: https://docs.mileapp.dev/llms.txt
Use this file to discover all available pages before exploring further.
Understanding Main Tasks and Subtasks
- Main task — the task created from a Flow that contains a Subflow component.
- Subtask — a task created automatically from each Subflow component on the main task’s Flow.
- Field mapping — when the main task is created, values from mapped fields are copied to the matching fields in each subtask.
How Subtasks Are Created
When you create a task from a Flow that contains Subflow components, the system does the following automatically:- The main task is created from the Flow as normal.
- For each Subflow component in the Flow, a separate subtask is created from the referenced child Flow.
- Mapped fields are copied from the main task to each subtask.
- Each subtask is linked to the main task, and the main task tracks every subtask it owns.
- Subtasks inherit the main task’s assignee, hub, start time, and end time. If the main task already has an assignee, the subtasks start with status Ongoing.
Subtasks cannot be assigned, moved, or scheduled on their own. These changes must be made on the main task, and they are applied to every subtask automatically.
Viewing Main Tasks and Subtasks in the Task List
Desktop
In the Task list, a main task appears as an expandable group header showing the main task’s flow name and a count of its subtasks. Click the header to expand or collapse the subtask rows beneath it.
Task list showing main tasks as expandable groups with their subtasks indented below
- Flow column — the Flow name of each task; the main task header shows the parent Flow, each subtask shows its own child Flow.
- Task selection checkbox — selecting the main task automatically includes all its subtasks in bulk operations.
- Status indicator — shows the current status of each task (Unassigned, Ongoing, Done).
- Action button — opens the action menu for the row. The available actions depend on whether the row is a main task or a subtask.

Desktop view of the Task list with a main task expanded to reveal its subtasks
Mobile View
On mobile view, main tasks appear as expandable card groups. Tap the group header to expand or collapse the subtask cards. Each card shows the Flow name, status, and assignee.
Mobile view of the Task list rendering main tasks as expandable card groups
Bulk Operations
Selecting a main task in the Task list automatically includes every subtask in the operation. Bulk operations are accessed through the Action button above the list.
Action menu showing bulk operations available for selected tasks
- Assign — assign a user to selected tasks.
- Unassign — remove the assignee from selected tasks.
- Move — move selected tasks to another hub.
- Delete — delete the selected tasks.
Viewing Main Task Details
Opening a main task shows the main task data plus a summary of its subtasks.
Main task detail showing the main task data alongside its subtasks
- Basic information — title, content, assignee, start and end time, hub.
- Subtask list — every subtask with its Flow name and current status.
- Status — the main task’s own status (Unassigned, Ongoing, Done).
- Flow data — field values captured on the main task.

Subtask detail showing its data and its link back to the main task
Assigning Main Tasks
When you assign a user to a main task, the assignment is applied to every subtask too. You cannot assign a subtask independently — the assignee field on a subtask is disabled in the Task list. If the assignee on the main task is changed later, the new assignee replaces the previous assignee on every subtask.Moving Main Tasks
Moving a main task to a different hub also moves every subtask to the same hub. The move operation can only be performed when:- The main task is Unassigned, and
- Every subtask is also Unassigned.

Move dialog showing the destination hub and the tasks that will be moved together
Editing Main Tasks and Subtasks
Editing a main task
The main task is fully editable in the Task list — title, custom fields, assignment, scheduling, and other Flow data can all be changed. Some changes on the main task are applied to every subtask automatically:- Assignee
- Start time
- End time
Editing a subtask
The assignee, start time, end time, and hub of a subtask cannot be changed on the subtask itself — these come from the main task. The subtask’s own data fields are filled in by the field worker while completing the task.Action buttons like Assign, Unassign, Move, and Delete are disabled on subtask rows in the Task list. Use the main task to perform these actions instead.
Deleting Main Tasks and Subtasks
Deleting a main task
Deleting a main task deletes every subtask attached to it. Before the deletion is performed, the Task list shows a confirmation dialog that lists every task that will be removed so you can review the impact.
Confirmation dialog listing the main task and its subtasks that will be deleted together
Deleting a subtask on its own
- A subtask that belongs to a Required Subflow cannot be deleted on its own — it can only be removed together with its main task.
- A subtask from a non-Required Subflow can be deleted individually, as long as it is not already in status Done.