Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 3f0bca6479c03ef4091394f02d46fcce5aeb43da @hobbs committed Mar 28, 2011
Showing with 28 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +23 −0 jirett-process-hook.py
  3. +4 −0 jirett.ini.example
@@ -0,0 +1 @@
+jirett.ini
@@ -0,0 +1,23 @@
+#!/usr/bin/python
+#
+# Refer to the XML-RPC Javadoc to see what calls are available:
+# http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/com/atlassian/jira/rpc/xmlrpc/XmlRpcService.html
+
+import xmlrpclib
+import sys
+
+#s = xmlrpclib.ServerProxy('http://jira.atlassian.com/rpc/xmlrpc')
+s = xmlrpclib.ServerProxy('http://jira.tunewiki.net/rpc/xmlrpc')
+auth = s.jira1.login('zach', 'droid1')
+
+def showUsage():
+ print '\nUsage: ' + sys.argv[0] + ' [new|merged|abandoned] <change id>\n\n'
+
+if (len(sys.argv) != 3):
+ showUsage()
+ exit();
+
+
+s.jira1.addComment(auth, "SMPA-70", 'Comment added with XML-RPC')
+
+print "Done!"
@@ -0,0 +1,4 @@
+[jira]
+user=user
+pass=pass
+projects=

0 comments on commit 3f0bca6

Please sign in to comment.