diff --git a/ee/app/services/concerns/work_items/sync_as_epic.rb b/ee/app/services/concerns/work_items/sync_as_epic.rb index 5c52c800afd348b5a61d66ac22b752c65516b372..dec2d909591a23b94d67ad4073e12415057a99f7 100644 --- a/ee/app/services/concerns/work_items/sync_as_epic.rb +++ b/ee/app/services/concerns/work_items/sync_as_epic.rb @@ -57,7 +57,7 @@ def update_params(work_item) .index_with { |attr| work_item[attr] } .merge(color_params(work_item)) .merge(dates_params(work_item)) - .merge(updated_at: work_item.updated_at) + .merge(updated_at: work_item.updated_at, updated_by_id: work_item.updated_by_id) end def base_attributes_params(work_item) diff --git a/ee/spec/services/work_items/update_service_spec.rb b/ee/spec/services/work_items/update_service_spec.rb index 084c20d5a431b860371e8ec46178d3a28f9fa7eb..3822daade1cc407085975e7e8a763dc673908512 100644 --- a/ee/spec/services/work_items/update_service_spec.rb +++ b/ee/spec/services/work_items/update_service_spec.rb @@ -365,7 +365,10 @@ end context 'with a synced epic' do - let_it_be(:work_item, refind: true) { create(:work_item, :epic_with_legacy_epic, namespace: group) } + let_it_be(:work_item, refind: true) do + create(:work_item, :epic_with_legacy_epic, namespace: group, updated_by: create(:user)) + end + let_it_be(:epic) { work_item.synced_epic } let(:start_date) { (Time.current + 1.day).to_date } let(:due_date) { (Time.current + 2.days).to_date }