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)'}}>
Try this:
issues = jira.getIssuesFromJqlSearch( token, jql, SOAPpy.Types.intType(50) )
Note the case: IntType (capital "I") will behave differently.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.