tb-update-task-status

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

更新任务状态

Update Task Status

执行步骤

Execution Steps

  1. 读取
    .teambition.md
    常用项目,让用户选择项目
  2. 执行
    node scripts/tb-api.mjs get-project-tasks --projectId <ID>
    获取任务列表
  3. 让用户选择要更新的任务
  4. 执行
    node scripts/tb-api.mjs get-taskflow-statuses --projectId <ID>
    获取状态列表
  5. 让用户选择目标状态
  6. 执行:
bash
node scripts/tb-api.mjs update-task-status --taskId <ID> --projectId <ID> --statusId <ID>
  1. 更新
    .teambition.md
    最近任务记录
规则:
  • 如果宿主支持交互选择控件,则使用交互选择
  • 如果宿主不支持交互选择控件,则直接在对话中询问用户
  • 不要自动替用户选择状态
  1. Read common projects from
    .teambition.md
    and let the user select a project
  2. Run
    node scripts/tb-api.mjs get-project-tasks --projectId <ID>
    to get the task list
  3. Let the user select the task to update
  4. Run
    node scripts/tb-api.mjs get-taskflow-statuses --projectId <ID>
    to get the status list
  5. Let the user select the target status
  6. Run:
bash
node scripts/tb-api.mjs update-task-status --taskId <ID> --projectId <ID> --statusId <ID>
  1. 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, ask the user directly in the conversation
  • Do not automatically select the status for the user