tb-set-parent-task
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese设置父子任务
Set Parent-Child Tasks
执行步骤
Execution Steps
- 读取 常用项目和最近任务
.teambition.md - 让用户选择项目
- 获取任务列表,让用户选择父任务
- 让用户选择子任务
- 执行:
bash
node scripts/tb-api.mjs set-parent-task --taskId <子任务ID> --parentTaskId <父任务ID>- 更新 最近任务记录
.teambition.md
规则:
- 如果宿主支持交互选择控件,则使用交互选择
- 如果宿主不支持交互选择控件,则直接在对话中询问用户
- 不要自动决定父子关系
- Read common projects and recent tasks from
.teambition.md - Let the user select a project
- Get the task list, let the user select the parent task
- Let the user select the child task
- Execute:
bash
node scripts/tb-api.mjs set-parent-task --taskId <subtask ID> --parentTaskId <parent task ID>- Update the recent task records in
.teambition.md
Rules:
- If the host supports interactive selection controls, use interactive selection
- If the host does not support interactive selection controls, directly ask the user in the conversation
- Do not automatically determine the parent-child relationship