Sha256: 351e1afe7022bf58dc9ec279e3b2fcab741b2444a07a95f4852722f6f7e15858
Contents?: true
Size: 762 Bytes
Versions: 2
Compression:
Stored size: 762 Bytes
Contents
require 'rubygems' require 'ticketmaster' require 'ticketmaster-pivotal' require 'ticketmaster-lighthouse' # copy all tickets and comments from pivotal tracker to new lighthouse project pivotal = TicketMaster.new(:pivotal) pivotal_project = pivotal.project(97107) lighthouse = TicketMaster.new(:lighthouse) lighthouse_project = lighthouse.project!(:name => "Copy Test on #{Time.now}", :description => "A copy test") pivotal_project.tickets.each do |pivotal_ticket| puts pivotal_ticket.title, pivotal_ticket.description lighthouse_ticket = lighthouse_project.ticket!({:title => pivotal_ticket.title, :description => pivotal_ticket.description}) pivotal_ticket.comments.each do |comment| lighthouse_ticket.comment!(:text => comment.body) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ticketmaster-0.3.8 | examples/tm_example_3.rb |
ticketmaster-0.3.7 | examples/tm_example_3.rb |