Skip to content

Instantly share code, notes, and snippets.

@lanej
Forked from ey-pairing/pivotal_report.rb
Created November 13, 2012 00:02
Show Gist options
  • Save lanej/4062936 to your computer and use it in GitHub Desktop.
Save lanej/4062936 to your computer and use it in GitHub Desktop.
pivotal report
require 'pivotal'
client = Pivotal::Client.new
report_file = File.expand_path("~/pivotal-report.txt")
File.open(report_file, "w") do |fs|
current_iteration = client.projects.get(635517).iterations.current
fs.puts "Iteration ##{current_iteration.number}, #{current_iteration.start} - #{current_iteration.finish} : #{current_iteration.team_strength * 100.0}%"
current_iteration.stories.each do |story|
fs.puts([story.story_type.capitalize, story.name.inspect, story.url].join(", "))
end
end
puts File.read(report_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment