Skip to content

Instantly share code, notes, and snippets.

@jamtur01
Forked from edavis10/console-csv.rb
Created September 23, 2010 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamtur01/594538 to your computer and use it in GitHub Desktop.
Save jamtur01/594538 to your computer and use it in GitHub Desktop.
# script/console
include IssuesHelper
include CustomFieldsHelper
# All issues and projects
File.open('output-file.csv','w') do |f|
f.puts issues_to_csv(Issue.all)
end
# the "puppet" project
File.open('output-file.csv','w') do |f|
f.puts issues_to_csv(Project.find('puppet').issues)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment