<%
component_labels = Project.by_keys(@issues_query.componentRoots).map{|c| c ? c.name : nil}
+ assignee_keys = @issues_query.assignees
assignee_labels = user_labels(@issues_query.assignees)
+ if @issues_query.assigned==false
+ assignee_keys = ['<unassigned>'] + assignee_keys
+ assignee_labels = [message('unassigned')] + assignee_labels
+ end
reporter_labels = user_labels(@issues_query.reporters)
%>
{ key: 'severities[]', value: <%= @issues_query.severities.to_json -%> },
{ key: 'statuses[]', value: <%= @issues_query.statuses.to_json -%> },
{ key: 'resolutions[]', value: <%= @issues_query.resolutions.to_json -%> },
- { key: 'assignees', value: <%= @issues_query.assignees.to_json -%>, text: <%= assignee_labels.to_json -%> },
+ { key: 'assignees', value: <%= assignee_keys.to_json -%>, text: <%= assignee_labels.to_json -%> },
{ key: 'reporters', value: <%= @issues_query.reporters.to_json -%>, text: <%= reporter_labels.to_json -%> },
{ key: 'createdAfter', value: '<%= Api::Utils.format_date(@issues_query.createdAfter) -%>' },
{ key: 'createdBefore', value: '<%= Api::Utils.format_date(@issues_query.createdBefore) -%>' }