Skip to main content

禅道项目管理 CLI - 任务查询、创建、编辑、工时记录、6R报表,可集成 OpenClaw

Project description

zentao-cli

禅道项目管理 CLI 工具,支持任务查询、创建、编辑、工时记录和 6R 报表生成。

可独立使用,也可作为 OpenClaw Skill 集成到 AI agent 中。

安装

pip install zentao-cli

或通过 pipx / uvx 一次性运行:

uvx zentao-cli list --status done

配置

首次使用,运行交互式配置:

zentao setup

按提示输入禅道地址、账号、密码、默认执行名称即可。配置保存在 ~/.config/zentao/config.json(权限 600)。

也可以通过环境变量配置(优先级高于配置文件,适合 CI/容器场景):

export ZENTAO_HOST="https://zentao.example.com"
export ZENTAO_ACCOUNT="your_account"
export ZENTAO_PASSWORD="your_password"
export ZENTAO_DEFAULT_EXECUTION_NAME="运维"

使用

# 查询任务
zentao list
zentao list --status done
zentao list --start-date 2026-03-01 --end-date 2026-03-31
zentao list --json

# 任务详情
zentao get 123

# 创建任务(自动完成)
zentao create \
  --title "修复 Nginx 配置" \
  --description "生产环境配置错误" \
  --work-content "排查并修复 upstream 配置" \
  --acceptance-criteria "服务正常转发"

# 编辑任务
zentao edit 123 --status done
zentao edit 123 --title "新标题" --assigned-to someone

# 删除任务
zentao delete 123

# 记录工时
zentao effort 123 --hours 2 --work "排查并修复配置"

# 生成 6R 报表
zentao report --start-date 2026-03-01 --end-date 2026-03-15

OpenClaw 集成

安装 CLI 并配置后,将 SKILL.md 复制到 OpenClaw skills 目录即可:

pip install zentao-cli
zentao setup
mkdir -p ~/.openclaw/skills/zentao-task-manager
cp SKILL.md ~/.openclaw/skills/zentao-task-manager/

重启 gateway 即可使用。无需在 openclaw.json 中配置环境变量,CLI 会自动读取 ~/.config/zentao/config.json

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zentao_cli-1.2.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zentao_cli-1.2.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file zentao_cli-1.2.0.tar.gz.

File metadata

  • Download URL: zentao_cli-1.2.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for zentao_cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c57e725b63e1fb8722771e6fd924fe41893ca7bffba6656b43031324910b3650
MD5 fb0126d5f67370a85907780b2e4f9994
BLAKE2b-256 ea653ed9fd32487f27f918d00e06b721c3e2584a0bc145675974b9eef34cc1c6

See more details on using hashes here.

File details

Details for the file zentao_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: zentao_cli-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for zentao_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 632e2d506390608406188f1e34a3607e934a2f46cde6b167eb1368e8f644a754
MD5 b9cf163f45390712a69f9ef8a07ce4b4
BLAKE2b-256 2cea3f7350c6b1b37b53f71c4de2dca4ce835b760f20ef439b2628d52d3a9254

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page