tb-get-project-tasks

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

查询项目任务

Query Project Tasks

执行步骤

Execution Steps

  1. 读取
    .teambition.md
    中的常用项目
  2. 让用户从常用项目中选择
  3. 询问是否包含已完成任务(全部 / 仅未完成)
  4. 执行:
bash
node scripts/tb-api.mjs get-project-tasks --projectId <选中的ID>
  1. 解析 JSON,根据用户选择过滤 isDone,以表格展示
规则:
  • 如果宿主支持交互选择控件,则使用交互选择
  • 如果宿主不支持交互选择控件,则直接在对话中询问用户
  • 不要自动替用户决定是否过滤已完成任务
  1. Read common projects from
    .teambition.md
  2. Let the user select from the common projects
  3. Ask whether completed tasks are included (All / Incomplete only)
  4. Execute:
bash
node scripts/tb-api.mjs get-project-tasks --projectId <selected ID>
  1. 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