diff options
3 files changed, 14 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/issues_controller.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/issues_controller.rb index eb6897386cc..fb7461739c7 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/issues_controller.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/controllers/api/issues_controller.rb @@ -270,6 +270,7 @@ class Api::IssuesController < Api::ApiController # 'plan.plan' to plan all issues to an action plan or unlink. # 'do_transition.transition' to execute a transition on all issues. # 'add_tags.tags' to add tags on all issues. + # 'remove_tags.tags' to remove tags on all issues. # 'comment' to add a comment on all issues. # 'sendNotifications' to send notification for each modified issue (default is 'false') # diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb index 3c27f7531cc..55f316e41ea 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/issues/_bulk_change_form.html.erb @@ -101,6 +101,16 @@ <span style="float:right" class="note">(<%= message('issue_bulk_change.x_issues', :params => unresolved_issues.to_s) -%>)</span> </div> + <div class="modal-field"> + <label for="remove_tags"> + <%= message('issue.remove_tags') -%> + </label> + <input id="remove-tags-action" name="actions[]" type="checkbox" value="remove_tags"/> + + <input id="remove_tags" name="remove_tags.tags" type="text"/> + <span style="float:right" class="note">(<%= message('issue_bulk_change.x_issues', :params => unresolved_issues.to_s) -%>)</span> + </div> + <% end %> <% if transitions_by_issues.size > 0 %> @@ -172,4 +182,6 @@ $j('#severity').click(function() { check('set-severity-action'); }); $j('#add_tags').select2({tags: [ '<%= @tags.join("', '") -%>' ], width: '250px' }); $j('#add_tags').click(function() { check('add-tags-action'); }); + $j('#remove_tags').select2({tags: [ '<%= @tags.join("', '") -%>' ], width: '250px' }); + $j('#remove_tags').click(function() { check('remove-tags-action'); }); </script> diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 367ffb1c27f..1372d433608 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -638,6 +638,7 @@ measure_filter.error.VALUE_SHOULD_BE_A_NUMBER=Value used for metric should be a #------------------------------------------------------------------------------ issue.add_tags=Add Tags +issue.remove_tags=Remove Tags issue.assign.formlink=Assign issue.assign.submit=Assign issue.unassign.submit=Unassign |