Jira Listeners

Has anybody played around with writing any Jira Listeners in JRuby?
We are using Jira at work, and I wanted to create a custom Listener in
JRuby - since I know that the Jruby devs use Jira, I thought maybe
someone had some sample code I could use to build from.

Chris


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I played with this recently. I wanted to create a Jabber bot which would
help me track my tasks. I haven’t got there yet, but I had a look
around.

There’s the jira4r gem that you should have a look at. It uses the SOAP
interface of Jira. I also started a project called Rira which uses the
XmlRpc interface: GitHub - lackac/rira: Nice interface for Jira, the Ruby way.
It’s a very early version and since the xmlrpc interface is very limited
it
can’t do to much. But it has a nice api which feels more ruby like than
the
other options out there. No documentation yet, sorry, but look at the
source
it is not so complicated.

usage:
r = Rira(‘http://jira.atlassian.com’).login(‘xmlrpctester’,
‘xmlrpctester’)
r.projects
filters = r.saved_filters
filters.last.issues.map {|issue| issue.key} # => [“TST-17485”,
“TST-17201”,
“TST-17037”, “TST-16995”, …
issue = r.issue(‘TST-17201’) # => #<Rira::Model:0x376197c
@model=“issue”,
@attributes={“votes”=>“0”, …
issue.description # => "asdfasd asdf asdfa sdfasd "
issue.status.name # => “Open”
issue.comments.map {|c| c.body} # => [“Added UI Mockup: <2009-01-09
12:24>”,
“asdfasdf asd f”]

be prepared to wait a long time for some of the commands since the Jira
test
project has a lot of issues.

Cheers,
LacKac