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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Service Desk

Wy are we still using email for Service Desk workflows?

...attest to the experience of an urgent approval that gets lost in the boss’s inbox and requires that special “Please Approve” email or text message. In an age where we have distributed teams...

86 views 0 2
Read article

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