SuperAPI AI 工具集

youtrack

通用与其它

查看项目

更新于 10-15 17:26

技能介绍

用途:借助 yt CLI 与 YouTrack 实例交互,管理问题、敏捷看板、项目和用户。所有命令默认输出 JSON,便于可靠解析,也支持 --format text 输出人类可读文本,--pretty 可缩进 JSON。

主要能力:搜索、获取、创建、更新问题;列出与添加评论;列出项目、敏捷看板和当前用户。问题搜索支持 YouTrack 查询语法,如 project: PROJ、#Unresolved、assignee: me、priority: Critical、tag: bug 及自由文本。更新时自定义字段用 --field "Name=Value" 且可重复;--agile 可把问题加入看板或当前冲刺,--parent 可设其父任务以配合基于特性的泳道。

使用方式:先配置凭据,保存到 ~/.config/yt-cli/config.json: yt setup --url https://your-instance.youtrack.cloud --token <permanent-api-token> 也可用环境变量,且优先级高于配置文件: export YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud export YOUTRACK_TOKEN=<permanent-api-token> 常见命令包括 yt issue search "<query>" --format json --pretty、yt issue get PROJ-123、yt issue create --project PROJ --summary "..." --description "..."、yt issue comment PROJ-123 --text "..."、yt project list、yt agile list、yt user me。多行文本用转义的 \n 保留换行,CLI 会转换为真实换行。分页用 --top(默认 50)与 --skip(默认 0)。退出码 0 表示成功,1 表示错误,错误以 JSON 写入 stderr。

限制:资料未提供更多安装说明、版本兼容范围、权限要求及速率限制等细节,暂未提供。