tb-get-project-tasks
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese查询项目任务
Query Project Tasks
执行步骤
Execution Steps
- 读取 中的常用项目
.teambition.md - 让用户从常用项目中选择
- 询问是否包含已完成任务(全部 / 仅未完成)
- 执行:
bash
node scripts/tb-api.mjs get-project-tasks --projectId <选中的ID>- 解析 JSON,根据用户选择过滤 isDone,以表格展示
规则:
- 如果宿主支持交互选择控件,则使用交互选择
- 如果宿主不支持交互选择控件,则直接在对话中询问用户
- 不要自动替用户决定是否过滤已完成任务
- Read common projects from
.teambition.md - Let the user select from the common projects
- Ask whether completed tasks are included (All / Incomplete only)
- Execute:
bash
node scripts/tb-api.mjs get-project-tasks --projectId <selected ID>- Parse the JSON, filter isDone according to the user's selection, and display the results in a table
Rules:
- If the host supports interactive selection controls, use interactive selection
- If the host does not support interactive selection controls, ask the user directly in the conversation
- Do not automatically decide whether to filter completed tasks on behalf of the user