Project

General

Profile

Building plugin to impose to give a parent task.

Added by Romuald Bassinot over 9 years ago

Hi,

I try to write a plugin, for Redmine 2.5.2, in order to give the parent task of an issue required when it is not a specific tracker amongst a list.
Then I override this file app\views\issue\_form.html.erb :

<% if @issue.safe_attribute? 'tracker_id' %>
<p><%= f.select :tracker_id, @issue.project.trackers.collect {|t| [t.name, t.id]}, {:required => required_parent_issue_id?},
                :onchange => "updateIssueFrom('#{escape_javascript project_issue_form_path(@project, :id => @issue, :format => 'js')}')" %></p>
<% end %>

and my custom function required_parent_issue_id? is in the controller. I want to pass the value selected to the controller, but I don't know how.

Thanks for some help.