[bug]: Transferring work items to another cycle does not record it in the work items' activity

Abierto
#10,383 1 comentario 0 reacciones 2 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@vihar ya está trabajando en esto.

Desde el 24/11/2026.

  • #10384 de @ashokram-si — abierto
  • #10410 de @avesh-pathak — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

🐛bug plane
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
  1. Create a cycle that has ended and a second cycle that is current or upcoming.
  2. Put a work item that is not completed into the first cycle.
  3. 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/ with new_cycle_id).
  4. 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)

Lenguaje dominante
TypeScript
Estrellas
63k
Forks
6.5k
Merge medio
2 d 16 h
PR fusionados (30 d)
70

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de makeplane/plane

Todos los issues de makeplane/plane

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.