Project

General

Profile

Defect #1158

[PATCH] Sprint update of PBI does not update children

Added by Christian Luginbühl over 8 years ago. Updated over 8 years ago.

Status:
New
Priority:
Normal
Category:
Issues list & form
Target version:
-
Source:
Customer
Detected on version:
Blocked:
No
Alone:
Milestones:
Sprint:

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

#1

Updated by Christian Luginbühl over 8 years ago

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.

#2

Updated by Christian Luginbühl over 8 years ago

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).

Also available in: Atom PDF