[bug]: Transferring work items to another cycle does not record it in the work items' activity
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When the work items of a cycle are moved to another cycle with "Transfer work items", nothing about the move shows in the work items' activity. Adding a work item to a cycle by hand records "added cycle ..." as expected. Converting a draft into a work item with a cycle picked also records nothing.
The cycle activity task fails in both cases. transfer_cycle_issues (apps/api/plane/utils/cycle_transfer_issues.py) sends "created_cycle_issues": [], a list, while create_cycle_issue_activity (apps/api/plane/bgtasks/issue_activities_task.py) runs json.loads() on that value; the other callers send a JSON string there. issue_activity catches the error and logs it before bulk_create, so no activity rows are written:
TypeError: the JSON object must be str, bytes or bytearray, not list
It looks like this started with #7969, which changed the value from "[]" to [].
Steps to reproduce
- Create a cycle that has ended and a second cycle that is current or upcoming.
- Put a work item that is not completed into the first cycle.
- On the first cycle, use "Transfer work items" and pick the second cycle (or call
POST /api/v1/workspaces/<slug>/projects/<project_id>/cycles/<cycle_id>/transfer-issues/withnew_cycle_id). - Open the work item's activity: there is no change from the first cycle to the second, and the worker log shows the TypeError above.
Environment
Production
Browser
None
Edition
Community
Version
v1.5.0 (also on preview at 723bb178f)
- 主要语言
- TypeScript
- 星标
- 63k
- 派生
- 6.5k
- 平均合并
- 2 天 16 小时
- 30 天内合并 PR
- 70
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
makeplane/plane 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
[bug]: Comment external_id is deduplicated per project instead of per work item可能已有人在做 @MishraTanishq619 于 21 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
makeplane/plane#10195 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Missing optional chaining on actor_details and reaction_items in apps/space reactions and votes可能已有人在做 @ghazy2001 于 29 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
makeplane/plane#10111 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
makeplane/plane#10082 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
good first issue help wanted
难度 2/5 1 小时以内 新手友好度 86/100
Intelligenza-Umana/intelligenza-umana-web#16 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
open-webui/open-webui#35184 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
danielmiessler/LifeOS#3001 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复