Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial commit

  • Loading branch information...
commit 3f0bca6479c03ef4091394f02d46fcce5aeb43da 0 parents
hobbs authored March 28, 2011
1  .gitignore
... ...
@@ -0,0 +1 @@
  1
+jirett.ini
23  jirett-process-hook.py
... ...
@@ -0,0 +1,23 @@
  1
+#!/usr/bin/python
  2
+#
  3
+# Refer to the XML-RPC Javadoc to see what calls are available:
  4
+# http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/com/atlassian/jira/rpc/xmlrpc/XmlRpcService.html
  5
+ 
  6
+import xmlrpclib
  7
+import sys
  8
+
  9
+#s = xmlrpclib.ServerProxy('http://jira.atlassian.com/rpc/xmlrpc')
  10
+s = xmlrpclib.ServerProxy('http://jira.tunewiki.net/rpc/xmlrpc')
  11
+auth = s.jira1.login('zach', 'droid1')
  12
+
  13
+def showUsage():
  14
+    print '\nUsage: ' + sys.argv[0] + ' [new|merged|abandoned] <change id>\n\n'
  15
+
  16
+if (len(sys.argv) != 3):
  17
+    showUsage()
  18
+    exit();
  19
+
  20
+
  21
+s.jira1.addComment(auth, "SMPA-70", 'Comment added with XML-RPC')
  22
+ 
  23
+print "Done!"
4  jirett.ini.example
... ...
@@ -0,0 +1,4 @@
  1
+[jira]
  2
+user=user
  3
+pass=pass
  4
+projects=

0 notes on commit 3f0bca6

Please sign in to comment.
Something went wrong with that request. Please try again.