tb-link-task

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

关联任务

Associate Tasks

执行步骤

Execution Steps

  1. 读取
    .teambition.md
    常用项目
  2. 让用户选择源任务所在项目,获取任务列表后选择源任务
  3. 让用户选择目标任务所在项目,获取任务列表后选择目标任务
  4. 执行:
bash
node scripts/tb-api.mjs link-task --taskId <源ID> --linkedTaskId <目标ID> --linkedProjectId <目标项目ID>
  1. 更新
    .teambition.md
    最近任务记录
规则:
  • 如果宿主支持交互选择控件,则使用交互选择
  • 如果宿主不支持交互选择控件,则直接在对话中询问用户
  • 必须先明确源任务和目标任务,不要自动关联
  1. Read common projects from
    .teambition.md
  2. Ask the user to select the project where the source task resides, get the task list, then select the source task
  3. Ask the user to select the project where the target task resides, get the task list, then select the target task
  4. Execute:
bash
node scripts/tb-api.mjs link-task --taskId <源ID> --linkedTaskId <目标ID> --linkedProjectId <目标项目ID>
  1. Update 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
  • The source task and target task must be confirmed first, do not perform automatic association