Skip to content

maniphest create --parent creates a task as a subtask - #546

Merged
holmboe merged 1 commit into
mainfrom
maniphest-create-parent
Sep 29, 2026
Merged

holmboe merged 1 commit into
mainfrom
maniphest-create-parent

Conversation

@holmboe

@holmboe holmboe commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

maniphest create had no way to make a subtask. Only a create spec could, with parent: T123.

  • --parent takes a task monogram or PHID, repeatable and comma-separated like --tag and --attach
  • It is sent as parents.add in the same maniphest.edit that creates the task, which is the transaction a spec uses. The parent is not edited and keeps its subtasks
  • Every parent is resolved first by the new resolve_task_phids, in at most two maniphest.search calls, so an unknown parent is refused and nothing is created
  • --dry-run names the parents, and --with refuses --parent like the other options a spec ignores

Testing

  • uv run pytest passes (5800 tests), and ruff and mypy are clean
  • Checked against the local Phorge: the created task reports Parents: T81, --dry-run names the parent, and --parent=T999999 exits 1 without creating anything

Closes #545

🤖 Generated with Claude Code

maniphest create had no way to make a subtask; only a create spec could,
with parent: T123. --parent takes a task monogram or PHID, repeatable
and comma-separated like --tag and --attach, and is sent as parents.add
in the maniphest.edit that creates the task - the transaction a spec
uses - so the parent is not edited and keeps its subtasks.

Every parent is resolved first by resolve_task_phids, in at most two
maniphest.search calls, so an unknown parent is refused and nothing is
created. The dry run names them, and --with refuses --parent like the
other options a spec ignores.

Closes #545

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@holmboe holmboe changed the title maniphest: --show-relations, relation keywords, and create --parent maniphest create --parent creates a task as a subtask Sep 29, 2026
@holmboe
holmboe merged commit 9c20a79 into main Sep 29, 2026
26 checks passed
@holmboe
holmboe deleted the maniphest-create-parent branch September 29, 2026 00:49
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.

maniphest create: --parent to create a task as a subtask

1 participant