planify icon indicating copy to clipboard operation
planify copied to clipboard

Error moving task with subtasks from one projet to another

Open BPier opened this issue 1 year ago • 2 comments

Describe the bug When moving a tasks that contains subtasks from project A to project B, the parent task and the subtasks are moved in Planify. In Nextcloud only the parent task is moved to project B and the subtasks stay in Project A.

At the next synchronisation the subtask is deleted.

To Reproduce Steps to reproduce the behavior:

  • In Planify, in an instance synchronized with Nexcloud create 2 projects: Project A and Project B
  • In Project A, Create a parent task ("Parent") with a subtask ("Child 1")
  • Make sure that the tasks are synchronised in Nextcloud
  • in Planify move the task "Parent" to project B
    • In Planify -> Now the task "Parent" and the subtask "Child 1" is located in Project B
    • in Nextcloud -> Now the task "Parent" is located in Project B and the task "Child 1" is now alone in Project A
  • Click on the wheel to force the synchronisation in Planify
  • Now the task Child 1 has been removed from the parent in planify
  • From now on the behavior is a bit chaotic, the task might appear or disapear each refresh in nextcloud

Expected behavior The tasks AND the subtasks should be moved in Planify AND Nextcloud

Desktop (please complete the following information):

  • OS or DE: NixOS, KDE Plasma
  • Version: NixOS unstable, Nextcloud version 30.0.2 , Planify 4.11.6

BPier avatar Dec 19 '24 10:12 BPier

Slightly related to #1457 and #2700.

janvlug avatar Dec 24 '24 09:12 janvlug

I can confirm this bug. Which means I basically cannot use Planify to organize and sort my Nextcloud tasks: as soon as I define a sub-task in my Inbox project, it's dangerous to move the task to another project, since I will end up with inconsistent states on the server and app.

This bug might not appear when moving from the local Inbox, since it doesn't get synced with any server.

EDIT:

for what it's worth:

in Planify move the task "Parent" to project B

In Planify -> Now the task "Parent" and the subtask "Child 1" is located in Project B in Nextcloud -> Now the task "Parent" is located in Project B and the task "Child 1" is now alone in Project A

In Nextcloud, "Child 1" was both a top-level task in Project A, and a Sub-Task in Project B. Removing it in Project A,also removed it in Project B. Moving it from Project A to Project B resulted in "Child 1" being a top-level task in Project B. In both cases, state in Planify doesn't mirror the state in Nextcloud, and it's not clear how to fix the problem afterwards.

Just in case it could help, NextCloud tasks code when moving a Task seems to be here.

EricDuminil avatar Jan 26 '25 13:01 EricDuminil

Hi! A fix was recently pushed to handle moving tasks in Nextcloud. Were you able to reproduce the issue with a newer version of Planify?

alainm23 avatar Jul 31 '25 16:07 alainm23

Hi,

I have reinstalled planify in version 4.13.0 from Flatpak but the issue persist.

I have created a task (Parent and child) in the folder "Inbox", in planify moved the parent task into the folder "Next Actions". Both task where moved but when I refreshed Planify the child task disapeared in planify and is still visible in the "Inbox" folder in Nextcloud.

BPier avatar Aug 05 '25 13:08 BPier