Defect #1159
[PATCH] position attribute isn't calculated correctly
Description
When using the "move to top" button in the Product backlog overview, one can generate a zero or even negative position values.
Also if you debug the issues, you'll find out, that the position values are not updated correctly (although this has no direct impact on the current views).
Expected behaviour: The position attribute should always be updated correctly, meaning that in every Sprint or in the Product Backlog, the values should be 1, 2, 3, ..., n without holes.
I did create a patch that should fix all this. It is a bit more extensive and cleans up quite a few things in issue_patch.
Thanks for considering this patch. I'm willing to update if you don't like it.
N.b. Currently the frontend code for the Product Backlog is not updated, so when moving PBIs, they still show the Position number the had before the client side move (as the released version), the backend is updated and as soon as one reloads the page, the correct numbers appear. I will try to do that as well.
Files
No data to display