<HTML>
<BODY>
We have, but I wonder if the API has changed a bit? (god that python
code is ugly!)

Here's what our new issue code looks like - we pull down a dummy issue
so that we can get at the java class (in order to create a new instance
of it):

<cfset jiraWS = createObject("webservice",['jira-url'])/>
<cfset tok = variables.jiraWS.login(['jira-acount'] ,['jira-password'] 
) />
<!--- get the class for creating new issue instances --->
<cfset issue = variables.jiraWS.getIssue(tok,['jira-sample-issue-key'])
/>
<cfset issueClazz = issue.getClass()/>

<cfset newIssue =  issueClazz.newInstance()/>
<cfset newIssue.setType(...)/>
<cfset newIssue.setProject(...)/>       
<cfset newIssue.setSummary(left(...)/>
<cfset newIssue.setDescription(...)/>
<cfset jiraWS.createIssue(tok,newIssue)/>

I'm not sure how you would set custom fields on a issue instance, but I
would expect it to be straightforward. Where exactly are you getting
stuck?

-Dave Ross




>>> [EMAIL PROTECTED] 12/19/05 6:09 AM >>>
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]



<P><hr size=1></P>
<P><STRONG>
CONFIDENTIALITY NOTICE: This email and any attachments may contain<br>
confidential information that is protected by law and is for the<br>
sole use of the individuals or entities to which it is addressed.<br>
If you are not the intended recipient, please notify the sender by<br>
replying to this email and destroying all copies of the<br>
communication and attachments. Further use, disclosure, copying,<br>
distribution of, or reliance upon the contents of this email and<br>
attachments is strictly prohibited. To contact Albany Medical<br>
Center, or for a copy of our privacy practices, please visit us on<br>
the Internet at www.amc.edu.
</STRONG></P>
</BODY>
</HTML>



----------------------------------------------------------
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