JiraSoapService - getIssuesFromJqlSearch - return Bad types exception

I'm using Python / SOAPpy to write a script aganst Jira SoapService, getIssuesFromJqlSearch is something I'm shooting for, it looks pretty straight forward in the doc (RemoteIssue[] getIssuesFromJqlSearch(java.lang.String token, java.lang.String jqlSearch, int maxNumResults)), but I keep getting 'bad types' exception, have no idea where exactly went wrong, can anyone kindly give me a hint? Thank you.

---

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

File "C:\Python27\lib\site-packages\SOAPpy\Client.py", line 540, in __call__return self.__r_call(*args, **kw)

File "C:\Python27\lib\site-packages\SOAPpy\Client.py", line 562, in __r_call self.__hd, self.__ma)

File "C:\Python27\lib\site-packages\SOAPpy\Client.py", line 475, in __call raise p SOAPpy.Types.faultType: <Fault soapenv:Server.userException: org.xml.sax.SAXException: Bad types (class java.math.BigInteger -> int): <SOAPpy.Types.structType detail at 27249200>: {'hostname': 'host', 'faultData': <SOAPpy.Types.structType faultData at 27247000>: {'exception': None, 'cause': None, 'message': 'Bad types (class java.math.BigInteger -> int)'}}>

3 answers

1 accepted

Accepted Answer
1 vote

Try this:

issues = jira.getIssuesFromJqlSearch( token, jql, SOAPpy.Types.intType(50) )

Note the case: IntType (capital "I") will behave differently.

I had the same problem and this solved it - thanks!

I had the same problem, and this fixed it. Thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

29 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you