rpathsync / jiranemo

Python interface for interacting with JIRA's (http://www.atlassian.com/software/jira/) XML-RPC and SOAP interfaces.

Clone this repository (size: 86.5 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/rpathsync/jiranemo/
commit 29: 711639dce755
parent 28: 31ec44ce3f66
branch: default
link issue function added
Andy Grimm
7 months ago

Changed (Δ335 bytes):

raw changeset »

pyjira/client.py (4 lines added, 0 lines removed)

pyjira/forms.py (4 lines added, 0 lines removed)

Up to file-list pyjira/client.py:

@@ -299,6 +299,10 @@ class JiraClient(object):
299
299
        root = objectify.parse(result).getroot()
300
300
        return [ i.key for i in root.channel.item ]
301
301
302
    def linkIssue(self, key, linkDesc, linkKey):
303
        id = self.getIssue(key).id
304
        self.webclient.LinkExistingIssue(**dict(id=id, linkDesc=linkDesc, linkKey=linkKey))
305
302
306
class _AuthorizedMethodWrapper(object):
303
307
    """ 
304
308
        Method wrapper that calls the underlying proxy with the 

Up to file-list pyjira/forms.py:

@@ -93,3 +93,7 @@ class SearchRequestXML(JiraForm):
93
93
    _requiredFields = [ 'reset' ]
94
94
    formUrl = '/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml'
95
95
    
96
class LinkExistingIssue(JiraForm):
97
    _fields = [ 'id', 'linkDesc', 'linkKey' ]
98
    _requiredFields = _fields
99
    formUrl = '/secure/LinkExistingIssue.jspa'