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

オープン
#10,408 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
70

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

makeplane/plane のほかの issue

makeplane/plane の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。