def _record_value_change(self, sprint, point_change, component=None, fieldname=Key.REMAINING_TIME): if fieldname == Key.STORY_POINTS: change = BurndownDataChange.remaining_points_entry(self.env, point_change, sprint, now()) else: change = BurndownDataChange.remaining_time_entry(self.env, point_change, sprint, now()) if component is not None and AgiloConfig(self.env).is_filtered_burndown_enabled(): change.update_marker(Key.COMPONENT, component) change.save()
def _record_value_change(self, sprint, point_change, component=None, fieldname=Key.REMAINING_TIME): if fieldname == Key.STORY_POINTS: change = BurndownDataChange.remaining_points_entry( self.env, point_change, sprint, now()) else: change = BurndownDataChange.remaining_time_entry( self.env, point_change, sprint, now()) if component is not None and AgiloConfig( self.env).is_filtered_burndown_enabled(): change.update_marker(Key.COMPONENT, component) change.save()