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"
Using Redmine and current git of scum-pm
Dashboard -> user story -> add task
send' lib/redmine/hook.rb:63:in
call_hook' lib/redmine/hook.rb:63:ineach' lib/redmine/hook.rb:63:in
call_hook' lib/redmine/hook.rb:60:incall_hook' lib/redmine/hook.rb:141:in
call_hook' app/controllers/issues_controller.rb:128:increate' /usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in
process_request' /usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:inmain_loop' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in
start_request_handler' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:inhandle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in
safe_fork' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:inhandle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
send' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:inmain_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in
start_synchronously' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:instart' /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in
start' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:inspawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in
lookup_or_add' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:inspawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in
synchronize' /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:insynchronize' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in
spawn_rails_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:inspawn_application' /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in
handle_spawn_application' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in__send__' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in
main_loop' /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously' /usr/lib/phusion_passenger/passenger-spawn-server:61the 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"
tasks can then be assigned to user stories using drag'n'drop from the "unassigned tasks"