[feature]: Set relations in the create work item modal, and allow a parent from another project (Workspace level)

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
django, python, typescript

调研方向

Start by reading the create work item modal, the detail view's relation and parent pickers, and the existing relations endpoint; the issue names these flows but no file paths. Check how the Workspace level switch is implemented for relation search and where the backend enforces same-project parents. Done when relations can be added during creation with failures reported, and cross-project parents work with children shown in the parent's sub-work items list.

由索引模型根据 Issue 内容生成。

描述

Is there an existing issue for this?
  • I have searched the existing issues
Summary

Two related improvements to how work items are linked:

1. Relations in the create work item modal.
The create modal already accepts properties such as state, priority, assignees, labels, dates, cycle, module, estimate and parent. Relations (blocking, blocked_by, relates_to, duplicate, and the timeline relations start_before / finish_before where available) are missing. Today you have to create the item, open it, and add each relation from the Relations section of the detail view.

Proposal: add a "Relations" property button to the create modal, next to Parent, that opens the existing work item search used in the detail view, including its Workspace level switch. You pick a relation type and one or more work items, which show as chips. After the create request succeeds, the modal calls the existing relations endpoint (POST .../issues/<id>/issue-relation/) for the new item. If adding a relation fails, the item is still created and a toast says which relations could not be added.

2. Workspace level switch in the parent picker.
A parent can only be chosen from the same project today, both in the create modal and in the detail view. The relations picker already has a Workspace level switch for searching across projects (added after #1551), but the parent picker does not. Proposal: add the same switch to the parent picker and allow a parent from any project in the workspace that the user can access. The child keeps its own project, states, cycle and module; only parent points across projects. The sub-work items list and progress on the parent then include children from other projects, each shown with its own identifier (e.g. OPS-12 under PLAT-40).

This could be a workspace setting, off by default, for teams that want to keep parent/child inside one project.

Why should this be worked on?
  • Dependencies are set when work is filed, or not at all. Teams that track dependencies want "blocked by X" set when the item is created. Adding it later is a separate step that is often forgotten, so dependencies are missing from the timeline and from blocked-by filters (#3137).
  • Work spans projects. A feature owned by one team often needs work items in other teams' projects (platform, ops, support). The natural model is one parent with children in each team's project. Today the only option is a "relates to" link, which does not roll up progress or show the work items as children. #6852 asks for the same cross-project tracking.
  • Parity with migration sources. Teams moving from tools where issue links and cross-project parent/child (epics) can be set on the create screen expect the same here.
  • Builds on what exists. Relations already work across projects, and the relation API and work item search (with the Workspace level switch) already exist. Part 1 is frontend only. Part 2 also needs the backend to accept a parent from another project in the same workspace (the current same-project check), plus the parent's sub-work items list showing children from other projects.

Related: #9384 (blocking dependencies inside work item templates), #6852 (linking work between projects), #1551 (cross-project relations, which added the Workspace level switch for relations).

主要语言
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 摘要。