[bug]: Plane Cloud: project create with project_lead returns 400 and leaves an orphan project with no states (regression of #8966?)

未关闭
#10,350 1 条评论 0 个 reaction 已指派 2 人 在 GitHub 查看

维护者通常 1 天内回复

@vihar 已经在做这个了。

开始于 2026年11月18日。

评估

这个 Issue 还没有评估数据。

描述

🐛bug plane
Is there an existing issue for this?
  • I have searched the existing issues
Current behavior

Through the hosted Plane MCP server (project tool, create action),
which calls POST /api/v1/workspaces/{slug}/projects/, creating a project
with a project_lead on Plane Cloud returns:

  400 {"error": "Please provide valid detail"}

The project is still created, but it has no workflow states, so work
items can't be given a state until someone adds states by hand. Trying
the create again then fails with:

  409 identifier: The project identifier is already taken

This matches the behavior described and fixed in #8966 (merged 2026-05-14),
so either that fix has not reached Plane Cloud or it has regressed.

Expected: the create either succeeds and seeds the default states with the
lead set, or fails atomically and leaves no project behind (#8966 also added
transaction.atomic() around the post-save side effects).

Steps to reproduce

Client: hosted Plane MCP server (https://mcp.plane.so/http/mcp), OAuth,
tool project, action create. Observed 2026-11-18, 22:28–22:47 UTC.

  1. Create a project with name, identifier, and project_lead set to the
    workspace owner's member id (the same user making the request).
    Optional fields (description, timezone, network) make no difference.
  2. Response: HTTP 400 "Please provide valid detail".
  3. List projects: the project exists.
  4. List states for that project: 0 states.
  5. Create again with the same identifier: 409 identifier already taken.

Control, same workspace and token, a few minutes later:

  1. Create a project with only name and identifier.
  2. Success. Listing states returns the five defaults
    (Backlog, Todo, In Progress, Done, Cancelled).

With project_lead: reproduced 4 of 4. Without: succeeded 1 of 1.

Workaround: create without project_lead, then set the lead with a project
update.

Two other things I saw, which I think are separate issues:

  • network is ignored on create (#9576). Projects came back with
    network: 2 (public) even when the request sent 0. A later PATCH
    with network: 0 did work on Cloud.
  • New projects came back with cycle_view and module_view set to
    false. The control project that created cleanly had them off too, so
    this is probably just the API's default.
Environment

Production

Browser

Other

Edition

Cloud

Version

latest

主要语言
TypeScript
星标
63k
派生
6.5k
平均合并
2 天 16 小时
30 天内合并 PR
70

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

makeplane/plane 的其他 Issue

查看 makeplane/plane 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。