How to use the jira.resources.Resource.__init__ function in jira

To help you get started, we’ve selected a few jira 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 pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        if raw:
            self._parse_raw(raw)

        Resource.__init__(
            self,
            "servicedesk/{0}/requesttype",
            options,
            session,
            "{server}/rest/servicedeskapi/{path}",
        )
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "securitylevel/{0}", options, session)
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "priority/{0}", options, session)
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "unknown{0}", options, session)
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "customFieldOption/{0}", options, session)
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "project/{0}/role/{1}", options, session)
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(
            self, "customer", options, session, "{server}/rest/servicedeskapi/{path}"
        )
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "issue/{0}/remotelink/{1}", options, session)
        if raw:
            self._parse_raw(raw)
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, path, options, session, raw):
        self.self = None

        Resource.__init__(self, path, options, session, self.AGILE_BASE_URL)
        if raw:
            self._parse_raw(raw)
            # Old GreenHopper API did not contain self - create it for backward compatibility.
            if not self.self:
                self.self = self._get_url(path.format(raw["id"]))
github pycontribs / jira / jira / resources.py View on Github external
def __init__(self, options, session, raw=None):
        Resource.__init__(self, "component/{0}", options, session)
        if raw:
            self._parse_raw(raw)