[bug]: Transferring work items to a cycle that does not exist returns 500

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

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

@vihar đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #10391 của @ashokram-si — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

transfer_cycle_issues (apps/api/plane/utils/cycle_transfer_issues.py) loads the target cycle with .first() and then reads new_cycle.end_date, so a new_cycle_id that is not a cycle of the project (deleted, or from another project) raises AttributeError: 'NoneType' object has no attribute 'end_date' and returns a 500. Both the web app endpoint and the public API endpoint go through it.

Steps to reproduce
  1. POST /api/workspaces/<slug>/projects/<project_id>/cycles/<cycle_id>/transfer-issues/ with {"new_cycle_id": "<a random uuid>"}.
  2. The response is a 500.
Environment

Production

Browser

None

Edition

Community

Version

v1.5.0 (also on preview at 723bb178f)

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.