Skip to content

Allow creation and display of sub tasks for issues

Allow creation of sub-tasks for issues

It would be very useful to organise issues in a hierarchical way, so sub-projects of the main project can be organised without having to create a label for each sub-project.

Proposal

  • Create a sub-task by clicking "New sub-task" button next to the "New branch" button on View issue screen
  • This opens the New Sub Task screen (re-uses the New Issue screen, with parent issue crumb trail and description shown at top)
  • Sub tasks are just issues with a parent issue. When displaying them, always display the ancestor crumb trail.
  • Viewing issues
  • Sub-tasks are shown listed below the main task description. This list can be collapsed.
  • When creating a new branch for a sub task of an issue with its own branch, It should offer the user a choice of branching from master, or from the parent issue's branch. (with an "always branch from master / parent issue's branch" checkbox, that remembers the choice on a per-user, per project basis)
  • Issues list
  • sub-tasks are displayed below the parent task, indented to show they are children of the parent issue. The sub-task list is collapsible.
  • When collapsed, the list shows "N sub-tasks", where N is the number of sub-tasks
  • Board view
  • Subtasks are shown slightly indented from the main task
  • Subtasks can be dragged out of the parent task to a new list to indicate their status. For subtasks with a different status to their parent, it displays a dummy parent (ghosted), above the subtask in the list, with the parent's status label visible against the dummy.
  • Dragging the parent task to a different list changes the label of the child tasks as well, and any sub tasks already in its new list are re-organised under the parent and any dummy removed

Links / references