Require
Simply drop your require statement at the top of your script
Creating an object
Now create the jira4r object:
- 2 = the version of the WSDL interface. At present, only v2 is supported.
- "http://jira.atlassian.com" = The URL base for your JIRA installation
Login
Login to the JIRA instance in question
Once you've logged in, the jira4r package will use your authentication token on all future requests. This makes calling JIRA methods a breeze!
Get that project!
The Output
The Complete Script
Could it get much simpler?
Labels

3 Comments
Hide/Show CommentsNov 28, 2009
Markus Liebelt
After having spent some time to debug this documentation, I would like to present what has worked for me.
So the differences were:
gem('soap4r')to ensure that this package is loaded instead of the default implementation contained in the ruby interpreter.gem('jira4r')is not necessary.'jira4r', not'jira4r/jira4r'.Jira4R, not onlyJiraCould you adapt the documentation to the source code, so that others may be use the script in less than 2 hours?
Bye
Markus
Apr 13, 2010
ken mclennan
I hit some problems running this under ruby 1.8.7 with a
SOAP::Mapping::MappingError
Cannot map Object to SOAP/OM
error. It seems to relate to this email thread (found via this article). Anyway, for anyone with this problem changing lines 48 to 52 of jira4r.rb from
if args.length > 0
method.call(@token, *args)
else
method.call(@token)
end
to:
if args.length > 0
method.call("#@token", *args)
else
method.call("#@token")
end
makes sure that the @token credentials are recognised as strings and everything worked from that point on. Hope that saves a bit of time to anyone who had the same problem i did!
Thanks for the pluggin - its been very useful!
Cheers
Ken
Jun 03, 2010
Chad Ostrowski
I had to do the same things as Markus.
Please update!
Also, I get errors when running getIssuesFromFilterWithLimit: NameError: undefined method `getIssuesFromFilterWithLimit' for class `Jira4R::V2::JiraSoapService' — why isn't a wsdl method available to jira4r?