def ticket_changed(self, ticket, comment, author, old_values): ticket = AgiloTicket.as_agilo_ticket(ticket) generator = ChartGenerator(self.env) # AT: this will only work if the task has been explicitly planned for # the sprint, otherwise it won't update. The sprint change is good for # task containers. # if ticket[Key.SPRINT]: if ticket[Key.SPRINT] or ticket.is_writeable_field(Key.REMAINING_TIME): sprint = self._get_sprint_name(ticket) generator.invalidate_cache(sprint_name=sprint) if old_values.get(Key.SPRINT) and old_values[Key.SPRINT] != ticket[Key.SPRINT]: generator.invalidate_cache(sprint_name=old_values[Key.SPRINT])
def ticket_changed(self, ticket, comment, author, old_values): ticket = AgiloTicket.as_agilo_ticket(ticket) generator = ChartGenerator(self.env) # AT: this will only work if the task has been explicitly planned for # the sprint, otherwise it won't update. The sprint change is good for # task containers. #if ticket[Key.SPRINT]: if ticket[Key.SPRINT] or ticket.is_writeable_field(Key.REMAINING_TIME): sprint = self._get_sprint_name(ticket) generator.invalidate_cache(sprint_name=sprint) if old_values.get( Key.SPRINT) and old_values[Key.SPRINT] != ticket[Key.SPRINT]: generator.invalidate_cache(sprint_name=old_values[Key.SPRINT])
def ticket_deleted(self, ticket): ticket = AgiloTicket.as_agilo_ticket(ticket) if ticket[Key.SPRINT] or ticket.is_writeable_field(Key.REMAINING_TIME): sprint = self._get_sprint_name(ticket) generator = ChartGenerator(self.env) generator.invalidate_cache(sprint_name=sprint)