How to use the pyral.entity.PortfolioItem function in pyral

To help you get started, we’ve selected a few pyral examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
class Requirement  (SchedulableArtifact):
    """ This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']

    def details(self):
        tank = ['%s' % self._type]
        for attribute_name in (Connection.MINIMAL_WDO_ATTRIBUTES + Connection.CONNECTION_INFO_ATTRIBUTES):
            try:
                value = getattr(self, attribute_name)
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']

    def details(self):
        tank = ['%s' % self._type]
        for attribute_name in (Connection.MINIMAL_WDO_ATTRIBUTES + Connection.CONNECTION_INFO_ATTRIBUTES):
            try:
                value = getattr(self, attribute_name)
            except AttributeError:
                continue
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']

    def details(self):
        tank = ['%s' % self._type]
        for attribute_name in (Connection.MINIMAL_WDO_ATTRIBUTES + Connection.CONNECTION_INFO_ATTRIBUTES):
            try:
                value = getattr(self, attribute_name)
            except AttributeError:
                continue
            if value is None:
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
'TestCaseResult'          : TestCaseResult,
             'TestSet'                 : TestSet,
             'TestFolder'              : TestFolder,
             'TestFolderStatus'        : TestFolderStatus,
             'TimeEntryItem'           : TimeEntryItem,
             'TimeEntryValue'          : TimeEntryValue,
             'Build'                   : Build,
             'BuildDefinition'         : BuildDefinition,
             'BuildMetric'             : BuildMetric,
             'BuildMetricDefinition'   : BuildMetricDefinition,
             'Defect'                  : Defect,
             'DefectSuite'             : DefectSuite,
             'Change'                  : Change,
             'Changeset'               : Changeset,
             'FlowState'               : FlowState,
             'PortfolioItem'           : PortfolioItem,
             'PortfolioItem_Strategy'  : PortfolioItem_Strategy,
             'PortfolioItem_Initiative': PortfolioItem_Initiative,
             'PortfolioItem_Theme'     : PortfolioItem_Theme,
             'PortfolioItem_Feature'   : PortfolioItem_Feature,
             'State'                   : State,
             'PreliminaryEstimate'     : PreliminaryEstimate,
             'WebLinkDefinition'       : WebLinkDefinition,
             'Milestone'               : Milestone,
             'ConversationPost'        : ConversationPost,
             'Blocker'                 : Blocker,
             'AllowedAttributeValue'   : AllowedAttributeValue,
             'AllowedQueryOperator'    : AllowedQueryOperator,
             'CustomField'             : CustomField,
             'UserIterationCapacity'   : UserIterationCapacity,
             'CumulativeFlowData'      : CumulativeFlowData,
             'ReleaseCumulativeFlowData'   : ReleaseCumulativeFlowData,
github RallyTools / RallyRestToolkitForPython / pyral / entity.py View on Github external
""" This is an Abstract Base class """
    pass
class HierarchicalRequirement(Requirement): pass

UserStory = HierarchicalRequirement   # synonomous but more intutive
Story     = HierarchicalRequirement   # ditto

class Task         (Artifact): pass
class Defect       (Artifact): pass
class TestCase     (Artifact): pass
class DefectSuite  (SchedulableArtifact): pass
class TestSet      (SchedulableArtifact): pass

class PortfolioItem(Artifact): pass
class PortfolioItem_Strategy  (PortfolioItem): pass
class PortfolioItem_Initiative(PortfolioItem): pass
class PortfolioItem_Theme     (PortfolioItem): pass
class PortfolioItem_Feature   (PortfolioItem): pass

class Connection(WorkspaceDomainObject):

    MINIMAL_WDO_ATTRIBUTES = ['_type',
                         'oid', 'ref', 'ObjectID', 'ObjectUUID', '_ref',
                         '_CreatedAt', '_hydrated', 'Subscription', 'Workspace']
    CONNECTION_INFO_ATTRIBUTES = ['ExternalId', 'ExternalFormattedId', 'Name', 'Description', 'Url', 'Artifact']

    def details(self):
        tank = ['%s' % self._type]
        for attribute_name in (Connection.MINIMAL_WDO_ATTRIBUTES + Connection.CONNECTION_INFO_ATTRIBUTES):
            try:
                value = getattr(self, attribute_name)
            except AttributeError: