summaryrefslogtreecommitdiff
path: root/app/services/work_items/parent_links/create_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/work_items/parent_links/create_service.rb')
-rw-r--r--app/services/work_items/parent_links/create_service.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/work_items/parent_links/create_service.rb b/app/services/work_items/parent_links/create_service.rb
index 288ca152f93..85b470c47ca 100644
--- a/app/services/work_items/parent_links/create_service.rb
+++ b/app/services/work_items/parent_links/create_service.rb
@@ -10,6 +10,8 @@ module WorkItems
link = WorkItems::ParentLink.find_or_initialize_by(work_item: work_item)
link.work_item_parent = issuable
+ link.move_to_end
+
if link.changed? && link.save
create_notes(work_item)
end