|
|
@ -76,7 +76,7 @@ module IssuePatch |
|
|
|
def velocity_based_estimate |
|
|
|
def velocity_based_estimate |
|
|
|
return nil if !self.is_story? || ! self.story_points || self.story_points <= 0 |
|
|
|
return nil if !self.is_story? || ! self.story_points || self.story_points <= 0 |
|
|
|
|
|
|
|
|
|
|
|
v = self.project.velocity |
|
|
|
v = self.project.scrum_statistics |
|
|
|
return nil if ! v or ! v[:days_per_point] |
|
|
|
return nil if ! v or ! v[:days_per_point] |
|
|
|
|
|
|
|
|
|
|
|
return Integer(self.story_points * v[:days_per_point]) |
|
|
|
return Integer(self.story_points * v[:days_per_point]) |
|
|
|