soloscrum-tracker-github-create-subtask
Creates a subtask of a parent GitHub Issue using the native Sub-issue feature. Active when tracker_profile = github-only.
Inputs
parent_issue_number— GH Issue number of the parent (e.g.123)title— subtask titlebody— subtask body in the lightweight work-body format persoloscrum-define-issue-format's Subtask Body section (Parent / What / Checklist / Notes — Subtasks do not carry AC; the parent Issue owns the AC and the Subtask slices its delivery)type—developordesign-ui(persoloscrum-define-task-type)sp— story points (persoloscrum-define-story-points)
Steps
- Create a GH Issue for the subtask
gh issue create \ --title "<title>" \ --body "<body>" \ --label "type:<type>" - Link as Sub-issue under the parent via GraphQL
gh api graphql -f query=' mutation($parent: ID!, $child: ID!) { addSubIssue(input: { issueId: $parent, subIssueId: $child }) { issue { id } } }' -F parent=<parent_node_id> -F child=<child_node_id> - Set SP via
soloscrum-tracker-github-set-spfor the new subtask - Return the new Sub-issue number
Output
- Sub-issue number (e.g.
#456) - URL
Notes
- Sub-issue numbers are regular GH issue numbers — the same
#references and PR linking work - If the parent has no Project assigned, prompt the user to attach the project first (SP step requires it)