Sub topic 10
Breaking Large Work into Task Lists
This chapter assumes you can create issues, apply labels, and reference issues and pull requests with #number. You will split one large issue into smaller pieces and track progress with task lists.
Why split large work
A single issue titled "Add date validation to the form" can hide a dozen steps. Nobody can tell what is done, who owns which part, or why the issue has been open for three weeks. Smaller units of work can each be assigned, reviewed, and closed on their own.
Task lists
A task list is a list in an issue or pull request body where each item starts with - [ ] (open) or - [x] (done). GitHub renders these as checkboxes you can click without editing the text.
## Date validation
- [ ] Reject impossible dates such as 2026-13-45
- [ ] Show an inline error message
- [x] Add unit tests for the parser
- [ ] #57
- [ ] #58When an item contains only an issue reference, such as - [ ] #57, GitHub shows the issue's title and its open or closed state. The parent issue also shows a progress count, for example "1 of 5 tasks". Ticking a box changes only the parent's text. It does not close the referenced issue.
A plain task item can be turned into its own issue. Hover over the item in the rendered view and use the issue-creation button. GitHub creates the issue and replaces the text with a reference to it.
Sub-issues
Sub-issues are issues nested under a parent issue. Unlike a task list, the relationship is stored as structured data, so the parent shows a progress bar that updates when children close. Add one from the parent's Create sub-issue or Add existing issue controls.
| Feature | Task list item | Sub-issue |
|---|---|---|
| Lives in | Issue body text | Parent/child relationship |
| Progress shown | Checked boxes | Closed child issues |
| Can be its own issue | Only if it is a reference | Always |
| Survives body edits | No, the text can be deleted | Yes |
Use a task list for small steps that do not need an owner. Use sub-issues when a step needs its own discussion, assignee, or milestone.
A practical workflow
- Write the parent issue with the goal and acceptance criteria.
- List the steps as a task list.
- Convert steps that need an owner into separate issues.
- Open one pull request per child issue and put
Fixes #57in its description. - Close the parent when every item is done.
Closing keywords from the linking chapter still apply. A pull request that says Fixes #57 closes the child issue on merge, and the parent's progress updates.
Common errors
- Task lists in comments. Progress tracking works from the issue or pull request body. Items in comments render as checkboxes but are not counted in the parent's progress.
- Items too large. If a step takes more than a few days, split it again.
- Missing space.
-[ ]and- []do not render. Use- [ ]exactly. - Assuming a ticked box closes the issue. It does not. Close the child issue itself.
- Too many levels. Deep nesting makes progress hard to read. Two levels is usually enough.
Exercise
You have a parent issue with the task item - [ ] #57. A pull request with Fixes #57 merges into the default branch. What happens to issue #57, and what happens to the checkbox in the parent?
Show answer
Issue #57 closes automatically because of the closing keyword. The parent's task item then shows the referenced issue as closed, and the parent's progress count updates. You do not need to edit the checkbox by hand.
Exercise
A step in your plan needs its own assignee and a separate discussion. Should it be a plain task item or a sub-issue, and why?
Show answer
A sub-issue (or a task item that references a separate issue). A plain checkbox has no assignee or discussion thread of its own.