def get_defect_by_name(self, defect_name): """ Return the defect with the name ``defect_name``. :param defect_name: The DEXXX defect id of the defect. :returns: A ``Defect`` object. """ return Defect.get_by_name(defect_name)
def get_defect_by_formatted_id(self, defect_id): """ Return the defect with the id ``defect_id``. :param defect_id: The DEXXX defect id of the defect. :returns: A ``Defect`` object. """ return Defect.get_by_formatted_id(defect_id)
def get_all_in_kanban_state(self, kanban_state): """ Get all stories and defects in the given ``kanban_state``. :param kanban_state: The kanban state to search for. :returns: A dictionary containing keys for ``stories`` and ``defects``, and values of lists of associated ``Story`` and ``Defect`` objects. """ stories = Story.get_all_in_kanban_state(kanban_state) defects = Defect.get_all_in_kanban_state(kanban_state) return {'stories': stories, 'defects': defects}
def get_all_in_kanban_states(self, kanban_states): """ Get all stories and defects in the given ``kanban_state``. :param kanban_state: A list of kanban states to search on. :returns: A dictionary containing keys for ``stories`` and ``defects``, and values of lists of associated ``Story`` and ``Defect`` objects. """ stories = Story.get_all_in_kanban_states(kanban_states) defects = Defect.get_all_in_kanban_states(kanban_states) return {'stories': stories, 'defects': defects}