Defect #1158
[PATCH] Sprint update of PBI does not update children
Description
When updating the Sprint in a PBI, its children (i.e. Tasks) are not updated. This behaviour is also different to the "Move to last Sprint" and "Move to product backlog" links in the "popup" window.
My expected behaviour: When changing the Sprint of a PBI (through the normal issue edit form), the Sprint of all non-closed child Tasks should be updated as well.
I did attach a patch file with a solution that works for me.
Thanks for considering this patch.
Files
Updated by Christian Luginbühl over 8 years ago
- File fix_sprint_update_also_changes_children_v2.patch fix_sprint_update_also_changes_children_v2.patch added
I did see an issue with the Issue#update_parent_attributes after_save filter when moving PBIs in the burndown list. It tries to update the child issues twice and the falling into the optimisic lock.
This new version 2 patch prevents this.
Updated by Christian Luginbühl over 8 years ago
- File fix_sprint_update_also_changes_children_v3.patch fix_sprint_update_also_changes_children_v3.patch added
Another problem showed up: When there are closed Tasks and the PBI is moved, the PBI is saved twice and results in a stale object exception.
Version 3 of my patch includes a fix for this issue as well (don't bother about the earlier versions anymore).