diff --git a/app/coffee/modules/backlog/main.coffee b/app/coffee/modules/backlog/main.coffee index a4a93e75..78576f4c 100644 --- a/app/coffee/modules/backlog/main.coffee +++ b/app/coffee/modules/backlog/main.coffee @@ -652,7 +652,12 @@ BacklogDirective = ($repo, $rootscope, $translate, $rs) -> # Update the total of points sprint.total_points += totalExtraPoints - $rs.userstories.bulkUpdateMilestone($scope.project.id, $scope.sprints[0].id, selectedUss).then => + data = _.map selectedUss, (us) -> + return { + us_id: us.id + order: us.sprint_order + } + $rs.userstories.bulkUpdateMilestone($scope.project.id, $scope.sprints[0].id, data).then => $ctrl.loadSprints() $ctrl.loadProjectStats() $ctrl.toggleVelocityForecasting()