Skip to content

Instantly share code, notes, and snippets.

@nerdEd
Created April 28, 2011 15:56
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 nerdEd/946624 to your computer and use it in GitHub Desktop.
Save nerdEd/946624 to your computer and use it in GitHub Desktop.
Change 'requested by' value for all stories in a project
require 'pivotal-tracker'
PivotalTracker::Client.token = 'lkjlkjlkj'
proj = PivotalTracker::Project.find(297071)
proj.stories.all.each do |story|
if story.requested_by == 'Ex Employee'
story.update({:requested_by => 'Current Employee'})
end
end
@samwgoldman
Copy link

s/pivotal_tracker/pivotal-tracker/

@nerdEd
Copy link
Author

nerdEd commented Sep 19, 2011

There are two different pivotal gems... looks like you're using a different one.

@samwgoldman
Copy link

samwgoldman commented Sep 19, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment