...
Code Block | ||||
---|---|---|---|---|
| ||||
decision_map as ( -- here we set the rules by which we decide whether add or subtract story points from sprint scope based on what happened with the ticket at that moment select * from ( -- was_my_sprint, became_my_sprint, was_closed, became_closed, was_story_points_multiplier, became_story_points_multiplier values (false, false, false, false, 0, 0), (false, false, false, true, 0, 0), (false, false, true, false, 0, 0), (false, false, true, true, 0, 0), (false, true, false, false, 0, 1), (false, true, false, true, 0, 0), (false, true, true, false, 0, 1), (false, true, true, true, 0, 0), (true, false, false, false, -1, 0), (true, false, false, true, -1, 0), (true, false, true, false, 0, 0), (true, false, true, true, 0, 0), (true, true, false, false, 0-1, 01), (true, true, false, true, -1, 0), (true, true, true, false, 0, 1), (true, true, true, true, 0, 0) ) s(was_my_sprint, became_my_sprint, was_closed, became_closed, was_story_points_multiplier, became_story_points_multiplier) ), |
...