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

Đang mở
#10,408 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, python, typescript

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
63k
Fork
6.5k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của makeplane/plane

Tất cả issue của makeplane/plane

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.