Skip to content

feat: add subtask support (addsubtask command and hasSubtasks display)#178

Open
beauraines wants to merge 2 commits intomainfrom
feat/subtask-support
Open

feat: add subtask support (addsubtask command and hasSubtasks display)#178
beauraines wants to merge 2 commits intomainfrom
feat/subtask-support

Conversation

@beauraines
Copy link
Copy Markdown
Owner

Summary

Adds the ability to create subtasks and display parent task indicators in the CLI.

Key Changes

  • New command: addsubtask (src/cmd/addsubtask.js)

    • Usage: rtm addsubtask <parentIndex> [subtaskName...]
    • Alias: as
    • Supports Smart Add syntax for subtask names
    • Graceful error handling for Pro-only (4040), nesting limit (4060), and repeating task (4070) errors
  • Parent task indicator in listings

    • printIndicator.js: New parentTask indicator — (p) in text mode, 📋 in emoji mode
    • ls.js, lsd.js, lsp.js: Display indicator when task.hasSubtasks is true
    • task.js: Show Has Subtasks: in task detail view

Dependencies

Requires beauraines/rtm-api#85 to be merged first (adds addSubtask() method and hasSubtasks property).

Breaking Changes

None — all changes are additive.

Closes #151, Closes #124

beauraines and others added 2 commits March 22, 2026 21:00
New command: addsubtask <parentIndex> [subtaskName...]
Alias: as

Creates a subtask under an existing task using the parent task's
display index. Supports Smart Add syntax for the subtask name.
Handles RTM-specific errors gracefully (Pro-only, nesting limit,
repeating task conflicts).

Usage:
  rtm addsubtask 5 Buy bananas
  rtm as 5

Closes: #151

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds a parentTask indicator ((p) in text mode, 📋 in emoji mode)
to printIndicator.js and displays it in ls, lsd, lsp, and task
detail views when a task has subtasks. Also shows Has Subtasks
field in the task detail view.

Closes: #124

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@beauraines beauraines self-assigned this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to add subtasks? Add hasSubtasks attribute

1 participant