Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-10502

XML RPC Python client unable to retrieve an issue that has been moved

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Won't Fix
    • None
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      If I run the following code:

       try :
         jiraissue = s.jira1.getIssue(auth,issue) # look up the issue
       except :
         print "Bad Issue skipping", issue #not a valid jira issue
        raise
      

      On an issue that has since been moved, the following exception is raised:

      Bad Issue skipping SYS-48
      Traceback (most recent call last):
        File "./makeReleaseNotes.py", line 68, in ?
          jiraissue = s.jira1.getIssue(auth,issue) # look up the issue
        File "/usr/lib/python2.4/xmlrpclib.py", line 1096, in __call__
          return self.__send(self.__name, args)
        File "/usr/lib/python2.4/xmlrpclib.py", line 1383, in __request
          verbose=self.__verbose
        File "/usr/lib/python2.4/xmlrpclib.py", line 1147, in request
          return self._parse_response(h.getfile(), sock)
        File "/usr/lib/python2.4/xmlrpclib.py", line 1286, in _parse_response
          return u.close()
        File "/usr/lib/python2.4/xmlrpclib.py", line 744, in close
          raise Fault(**self._stack[0])
      xmlrpclib.Fault: <Fault 0: 'java.lang.Exception: java.lang.NullPointerException'
      

      It would be nice if the Remote API could support moved issues

            Unassigned Unassigned
            5b62d770cb4c Michelle Lorenz
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: