How to use the jira.resources.resource.Resource 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 / issue.py View on Github external
__author__ = 'bspeakmon@atlassian.com'

class Issue(Resource):

    def __init__(self, options, raw=None, cookies=None):
        Resource.__init__(self, 'issue/{0}', options, cookies)
        if raw:
            self.raw = raw
            self.self = raw['self']

class CreateMeta(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'issue/createmeta', options, cookies)

class Comments(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'issue/{0}/comment', options, cookies)

class Comment(Resource):

    def __init__(self, options, raw=None, cookies=None):
        Resource.__init__(self, 'issue/{0}/comment/{1}', options, cookies)
        if raw:
            self.raw = raw
            self.self = raw['self']
github pycontribs / jira / jira / resources / issue.py View on Github external
from jira.resources.resource import Resource

__author__ = 'bspeakmon@atlassian.com'

class Issue(Resource):

    def __init__(self, options, raw=None, cookies=None):
        Resource.__init__(self, 'issue/{0}', options, cookies)
        if raw:
            self.raw = raw
            self.self = raw['self']

class CreateMeta(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'issue/createmeta', options, cookies)

class Comments(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'issue/{0}/comment', options, cookies)

class Comment(Resource):

    def __init__(self, options, raw=None, cookies=None):
        Resource.__init__(self, 'issue/{0}/comment/{1}', options, cookies)
        if raw:
            self.raw = raw
            self.self = raw['self']
github pycontribs / jira / jira / resources / project.py View on Github external
from jira.resources.resource import Resource

__author__ = 'bspeakmon@atlassian.com'

class Projects(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'project', options, cookies)

class Project(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'project/{0}', options, cookies)
github pycontribs / jira / jira / resources / search.py View on Github external
from jira.resources.resource import Resource

__author__ = 'bspeakmon@atlassian.com'

class Search(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, "search", options, cookies)
github pycontribs / jira / jira / resources / issue.py View on Github external
from jira.resources.resource import Resource

__author__ = 'bspeakmon@atlassian.com'

class Issue(Resource):

    def __init__(self, options, raw=None, cookies=None):
        Resource.__init__(self, 'issue/{0}', options, cookies)
        if raw:
            self.raw = raw
            self.self = raw['self']

class CreateMeta(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'issue/createmeta', options, cookies)

class Comments(Resource):

    def __init__(self, options, cookies=None):
        Resource.__init__(self, 'issue/{0}/comment', options, cookies)