Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
[#2] assign pivotal story if starting it.
Browse files Browse the repository at this point in the history
  • Loading branch information
alemata committed May 29, 2015
1 parent 233a2f9 commit e6ff627
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/assisted_workflow/addons/pivotal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def start_story(story, options = {})
log "starting story ##{story.id}"
options.delete(:estimate) if options[:estimate].nil?
update_story!(story, options.merge(:current_state => "started"))

owner_ids = story.owner_ids
if owner_ids.empty? || !owner_ids.include?(@client.me.id)
log "assigning story ##{story.id}"
update_story!(story, :owner_ids => owner_ids.dup << @client.me.id)
end
end

def finish_story(story, options = {})
Expand Down

0 comments on commit e6ff627

Please sign in to comment.