-
Type:
Suggestion
-
Resolution: Fixed
-
None
-
Component/s: Documentation - All
-
None
Feedback from our customer "Python example is absolutely wrong and misleading. Here is the code which works:"
import xmlrpclib s = xmlrpclib.ServerProxy('http://jira-stage.ironport.com/rpc/xmlrpc') print "Proxy exited" auth = s.jira1.login('opsengineer', 'opsengineer') print "login exited" newissue = s.jira1.createIssue(auth, { "project": "MONOPS", "type": 26, "summary": "Issue Created via XML-RPC", "description": "Issue created with Python client remotelly", "customFieldValues" : [ {"customfieldId" : "customfield_10224", "values" : ["1 - Greater than 10,000 seats"]}, {"customfieldId" : "customfield_10321", "values" : ["production"]}, {"customfieldId" : "customfield_10320", "values" : ["capacity"]}, {"customfieldId" : "customfield_10230", "values" : ["2 - Significant loss of customer productivity"]}, ], "priority" : 1 } ) print "Created %s/browse/%s" % (s.jira1.getServerInfo(auth)['baseUrl'], newissue['key'])