Exemplo n.º 1
0
    def get_all_entities(self):
        """
        Get all stories, defects and tasks.

        :returns:
            A list of ``BaseRallyModel`` inherited objects.
        """
        return Artifact.get_all()
Exemplo n.º 2
0
    def get_all_entities(self):
        """
        Get all stories, defects and tasks.

        :returns:
            A list of ``BaseRallyModel`` inherited objects.
        """
        return Artifact.get_all()
Exemplo n.º 3
0
    def get_entity_by_name(self, entity_name):
        """
        Return the entity with the name ``entity_name``.

        :param entity_name:
            The YYXXX id of the story/defect/task.

        :returns:
            A ``BaseRallyModel`` inheritted object, or None if no artifacts
            could be found.
        """
        return Artifact.get_by_name(entity_name)
Exemplo n.º 4
0
    def get_entity_by_formatted_id(self, entity_id):
        """
        Return the entity with the id ``entity_id``.

        :param entity_id:
            The YYXXX id of the story/defect/task.

        :returns:
            A ``BaseRallyModel`` inheritted object, or None if no artifacts
            could be found.
        """
        return Artifact.get_by_formatted_id(entity_id)