#!/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