Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/work_items/widgets/hierarchy.rb')
-rw-r--r--app/models/work_items/widgets/hierarchy.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/work_items/widgets/hierarchy.rb b/app/models/work_items/widgets/hierarchy.rb
index 9d90a56d59e..fc6714f1e08 100644
--- a/app/models/work_items/widgets/hierarchy.rb
+++ b/app/models/work_items/widgets/hierarchy.rb
@@ -11,6 +11,10 @@ module WorkItems
work_item.work_item_children_by_relative_position
end
+ def ancestors
+ work_item.ancestors
+ end
+
def self.quick_action_commands
[:set_parent, :add_child]
end