Forum: JRuby Jira Listeners

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
255957e676582582b6b8914e5c6aaec3?d=identicon&s=25 Chris Evans (Guest)
on 2009-02-11 23:06
(Received via mailing list)
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
D3ab365ec2c78d27e5a68e912848e85f?d=identicon&s=25 László Bácsi (Guest)
on 2009-02-12 10:50
(Received via mailing list)
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: http://github.com/lackac/rira/tree/master
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
This topic is locked and can not be replied to.