Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
/ jira-ruby Public archive
forked from sumoheavy/jira-ruby

A Ruby gem for the JIRA 5 REST API (using Basic Auth; try the original repo at trineo/jira-ruby if you want to use OAuth)

Notifications You must be signed in to change notification settings

codenauts/jira-ruby

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JIRA 5 API Gem

This gem provides access to the Atlassian JIRA version 5 REST API (a.k.a REST API version 2) using HTTP Basic Auth. If you want OAuth instead, please have a look at the original repo at github.com/trineo/jira-ruby.

Example usage

client = JIRA::Client.new({ :site => URL, :username => USERNAME, :password => PASSWORD })

project = client.Project.find('SAMPLEPROJECT')

project.issues.each do |issue|
  puts "#{issue.id} - #{issue.summary}"
end

issue.comments.each {|comment| ... }

comment = issue.comments.build({'body':'My new comment'})
comment.save
comment.delete

Links to JIRA REST API documentation

Setting up the JIRA SDK

On Mac OS,

brew install atlassian-plugin-sdk

Otherwise:

  • Download the SDK from developer.atlassian.com/ (You will need an Atlassian login for this)

  • Unpack the dowloaded archive

  • From within the archive directory, run:

    ./bin/atlas-run-standalone --product jira --version 5.0-rc2

Once this is running, you should be able to connect to localhost:2990/ and login to the JIRA admin system using ‘admin:admin`

You’ll need to create a dummy project and probably some issues to test using this library.

About

A Ruby gem for the JIRA 5 REST API (using Basic Auth; try the original repo at trineo/jira-ruby if you want to use OAuth)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%