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

This widget could not be displayed.

Try this:

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

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

This widget could not be displayed.

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

This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

111 views 2 0
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