I am playing around with JIRA ( the project issue tracker), using it's
webservice to auto-create issues that i parse with CFMX7 from some
emails coming out of a client's Test Director system

I've got the basic's create issue working, but i am stuck on the
populating custom fields via CF

there's an example for python from their website which i have listed below

how would you write the soap.updateIssue() bit below in CF?

I have read a few documents round the web on handling complex types
with CFMX but it hasn't really seemed to help, also the WSDL2java
output was not nearly like the what the example's were like :-(

here's the WSDL http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl

z

---------------------------------------------snip------------------------------------------
http://confluence.atlassian.com/display/JIRA/Creating+a+SOAP+Client

import SOAPpy

soap = 
SOAPpy.WSDL.Proxy('http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl')
auth = soap.login('soaptester', 'soaptester')

baseurl = soap.getServerInfo(auth)['baseUrl']
newissue = soap.createIssue(auth, {'project': 'TST', 'type': '1',
'summary': 'Issue created with Python!'})

print "Created %s/browse/%s\n" % (baseurl, newissue['key'])

soap.addComment(auth, newissue['key'], {'body': 'Comment added with SOAP'})
soap.updateIssue(auth, newissue['key'], [
{"id": "summary", "values": ['[Updated] Issue created with Python'] },

# Setting a custom field. The id (10010) is discoverable from
# the database or URLs in the admin section

{"id": "customfield_10010", "values": ["Random text set in updateIssue
method"] },

# Demonstrate setting a cascading selectlist:
{"id": "customfield_10061", "values": ["10098"]},
{"id": "customfield_10061_1", "values": ["10105"]}

/add        ])

---------------------------------------------snip------------------------------------------
--
Zac Spitzer
http://whereszac.org
0405 847 168


--
Zac Spitzer
http://whereszac.org
0405 847 168


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to