SuperAPI AI Directory

zentao-project

General & other

View repository

Updated 10-15 22:37

About this skill

project (v2)

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

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 --help to 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

  1. 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)
  2. Status Filtering:--status The parameter supports wait、doing、suspended、closed four values, case-insensitive.

  3. Project ACL: Projects have an access control level (acl); only project members or users who meet the permission conditions can view project details.

  4. Team Members: Through the users field, a list of team members is returned; complete member details may require additional queries.

  5. 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.

  6. 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.