Skip to content

Add comments each issue during bulk issue update

Summary

If a user uses the bulk update feature, comments such as "Status changed to closed" do not get added to each issue as they normally do if a single issue is closed/opened.

Steps to reproduce

  1. Go to a project's issues page.
  2. Select opened multiple issues.
  3. Change Status to Closed.

Expected behavior

Each issue should be closed and contain the comment, "Status changed to closed". In addition, changing milestones or labels should also cause comments to be inserted.

Observed behavior

Only the issue state is changed; no comments are inserted.

Fix

I've made BulkUpdateService inherit from UpdateService and re-used some of the functionality there. Added unit tests.

Closes #1149 (closed)

Merge request reports