Matt,
thanks, but that only works with SOAPpy. This library seems to have been
discontinued. Have you actually tried using it?
Dan.
forums@atlassian.com
Sent by: jira-developer-bounces@lists.atlassian.com
04/05/2007 16:43
Please respond to
jira-developer@lists.atlassian.com
To
jira-developer@lists.atlassian.com
cc
Subject
Re:
JIRA-dev SOAP XML format for attaching files
Take a look at the [JIRA
CLI|http://confluence.atlassian.com/display/JIRAEXT/Jira+CLI?showComments=false]
for an example
import base64
fp = open(filename, 'rb')
file_contents = fp.read()
fp.close()
file_contents = base64.b64encode(file_contents)
try:
return soap.addAttachmentsToIssue(auth, issueKey, [name],
[[file_contents]])
except Exception, e:
~Matt
--
Post by mdoar - online at:
http://forums.atlassian.com/thread.jspa?forumID=100&threadID=17515
_______________________________________________
Jira-developer mailing list
Jira-developer@lists.atlassian.com
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-developer
Pearl Group Ltd No. 5282342 and Pearl Group Services Ltd No.5549998. The following companies are subsidiary companies of Pearl Group Ltd and are authorised and regulated by the Financial Services Authority: Pearl Assurance plc No. 1419, London Life Ltd No. 1179800, NPI Ltd No. 3725037, National Provident Life Ltd NO. 3641947. All companies are registered in England at The Pearl Centre, Lynch Wood, Peterborough PE2 6FY. Tel. 01733 470470. We may record or monitor telephone calls to improve service and for our mutual protection.
The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee and access to this e-mail by anyone else is unauthorised. Although this message and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by any of the companies of Pearl Group Limited for any loss or damage in any way arising from its use.
_______________________________________________
Jira-developer mailing list
Jira-developer@lists.atlassian.com
To unsubscribe or change your options visit this page:
http://lists.atlassian.com/mailman/listinfo/jira-developer