Tasks can be defined using a variety of syntax patterns to specify their name, ID, start date/dependency, and duration. You can also apply status modifiers like crit (critical), active, or done to tasks.
Common patterns include:
- Dated tasks: Provide a specific start date and duration (e.g.,
2020-01-01, 7d). - Dependent tasks: Use the
after keyword followed by one or more task IDs (e.g., after task1). - Status modifiers: Prepend or include keywords like
crit, active, or done to change the task's visual state.
gantt
Dated task: task1, 2020-01-01, 7d
Subsequent task: task3, after task1, 7d
Critical task: crit, task5, 2020-01-01, 8d
Active task: task6, 2020-01-01, 6d
Done task: task7, 2020-01-01, 5d
Critical active task: crit, active, 2020-01-01, 6d
Critical done task: crit, done, 2020-01-01, 6d
Task after multiple tasks: task4, after task5 task6 task7, 4d