jsmestad / pivotal-tracker

Ruby gem that provides an AR-style interface for the Pivotal Tracker API
http://github.com/jsmestad/pivotal-tracker
MIT License
352 stars 184 forks source link

Is there any direct way to create stories in a specific iteration? #107

Open thukim opened 9 years ago

thukim commented 9 years ago

I would like to create stories and put them directly in the current log. However, as I searched through all pivotal tracker documents, it seems that I can only create stories in a project and they will be put into the Icebox by default. Actually, I can create a story first, find the last story in the Current log and move the newly-created story after it. But it would be better if there is a direct way to do it instead.

Thanks

anuja-joshi commented 8 years ago

@thukim Icebox contains stories which has state unscheduled and when you create a new story unscheduled state gets assign by default. So, If you want to create story in current log, create it with current_state as unstarted

@a_project.stories.create(:name => 'My Story', :story_type => 'feature', :current_state => 'unstarted')