Skip to content

Instantly share code, notes, and snippets.

@chris
Created September 13, 2008 07:49
Show Gist options
  • Save chris/10571 to your computer and use it in GitHub Desktop.
Save chris/10571 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
#
# Script to set all "fixed" Lighthouse tickets to deployed
require 'lighthouse_api/lighthouse'
Lighthouse.account = 'account' # put your account name in here
Lighthouse.token = 'abcdefghijklmnopqrstuvwxyz' # put your API token here
project = Lighthouse::Project.find(12345) # replace with your project's ID
project.tickets(:q => 'state:fixed').each do |ticket|
print "Setting bug #{ticket.number} to deployed and assigning to QAGuy..."
ticket.state = 'deployed'
ticket.assigned_user_id = 12345 # QAGuy's ID
ticket.save
puts "done."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment