CRITICAL — Before starting, you MUST first use the Read tool to read ../zentao-shared/SKILL.md, which contains authentication, environment variable configuration, error handling, and general options descriptions.
Commands
project list— List all projectsproject get— Get project detailsproject create— Create a new projectproject update— Update project informationproject delete— Delete a project
Core Concepts
- Project: An entity in ZenTao for organizing tasks and team members; a project can be associated with multiple products.
- Project ID: The unique identifier of a project, required when viewing tasks and team members.
- Relationship Between Project and Product: A project selects requirements from products to implement; one project can correspond to multiple products, and one product can also correspond to multiple projects.
Project Status Values
| Status | Chinese | Description |
|---|---|---|
wait |
Waiting | Project has not started |
doing |
In Progress | Project is in progress |
suspended |
Suspended | Project has been paused |
closed |
Closed | Project has ended |
Project Team
| Field | Type | Description |
|---|---|---|
| PM | u64 | Project Manager ID |
| team | string | Team Name |
| users | array | Team Member List |
Before use, you can run
zentao-cli project --helpto view the complete options.
Common Use Cases
1. View all projects
# 列出所有项目
zentao-cli project list
2. View details of a specific project
# 获取项目详情
zentao-cli project get 1
4. Use in combination with Story and Task
Projects are usually used in combination with requirement and task management:
# 查看项目详情
zentao-cli project get 1
# 查看该项目关联的需求
zentao-cli story list --product 1 --project 1
# 查看该项目的任务
zentao-cli task list --project 1
Examples
# 列出所有项目
zentao-cli project list
# 获取项目详情
zentao-cli project get 1
# 查看项目关联的需求
zentao-cli story list --product 1 --project 1
# 查看项目的任务
zentao-cli task list --project 1
Output Fields
| Field | Type | Description |
|---|---|---|
| id | u64 | Project ID |
| name | string | Project Name |
| code | string | Project Code |
| status | string | Project Status: wait / doing / suspended / closed |
| desc | string | Project Description |
| acl | string | Access Control Level |
| opened_by | string | Creator |
| opened_date | string | Creation Date |
| PM | u64 | Project Manager ID |
| team | string | Team Name |
| users | array | Team Members |
Gotchas
-
Project vs Product: Distinguish between projects and products:
- Product: Product perspective, focusing on "what features to build" (requirements)
- Project: Project perspective, focusing on "how to implement these features" (tasks)
-
Status Filtering:
--statusThe parameter supportswait、doing、suspended、closedfour values, case-insensitive. -
Project ACL: Projects have an access control level (acl); only project members or users who meet the permission conditions can view project details.
-
Team Members: Through the
usersfield, a list of team members is returned; complete member details may require additional queries. -
Project Manager: The PM field only returns the project manager's user ID; when needed, you can combine it with
zentao-cli user get <id>to get more information. -
Opened Date Format: The returned date format is the ZenTao API standard format and may need to be converted for display in the local time zone.