<% @version_issue_assigned_name.each do | assigned | %> <% end %>
指派给 全部 完成 关闭 待完成
<%= User.find(assigned[0]).try(:show_name) %> <%= Issue.where(:fixed_version_id => @version.id, :assigned_to_id => assigned[0]).count %> <%= Issue.where(:fixed_version_id => @version.id, :assigned_to_id => assigned[0], :status_id => 3).count %> <%= Issue.where(:fixed_version_id => @version.id, :assigned_to_id => assigned[0], :status_id => 5).count %> <%= Issue.where(fixed_version_id: @version.id, assigned_to_id: assigned[0], status_id: [1,2,4]).count %>
Total <%= Issue.where(:fixed_version_id => @version.id).count %> <%= Issue.where(:fixed_version_id => @version.id, :status_id => 3).count %> <%= Issue.where(:fixed_version_id => @version.id, :status_id => 5).count %> <%= Issue.where(fixed_version_id: @version.id, status_id: [1,2,4]).count %>