software-project / scrum-pm

Scrum PM is a plugin for Redmine ticket management system. It adds Scrum items like backlog, dashboard and others.
www.software-project.eu/EN/scrumpm
126 stars 47 forks source link

Cannot add a task to a user story #70

Open dr-itz opened 13 years ago

dr-itz commented 13 years ago

Using Redmine and current git of scum-pm

Dashboard -> user story -> add task

the following (wrong) patchlet lets me creates issues, but not assigned to the user story: diff --git a/lib/hooks.rb b/lib/hooks.rb index aa5dd42..2b9662d 100644 --- a/lib/hooks.rb +++ b/lib/hooks.rb @@ -4,10 +4,10 @@ module RedmineSprints render_on :view_issues_show_details_bottom, :partial => "issue_sprints/redirect_after_create"

     def controller_issues_new_before_save(context = {})
-      context[:issue].user_story_id = context[:params][:issue][:user_story_id]
-      if context[:issue].user_story_id && context[:issue].fixed_version_id
-        context[:issue].redirect_to = url_for(:controller => :sprints, :action => "show", :id => context[:issue].fixed_version_id, :project_id => context[:issue].project.i
-      end
+#      context[:issue].user_story_id = context[:params][:issue][:user_story_id]
+#      if context[:issue].user_story_id && context[:issue].fixed_version_id
+#        context[:issue].redirect_to = url_for(:controller => :sprints, :action => "show", :id => context[:issue].fixed_version_id, :project_id => context[:issue].project.
+#      end
     end
   end

tasks can then be assigned to user stories using drag'n'drop from the "unassigned tasks"