diff --git a/lib/api/v3/work_packages/work_package_representer.rb b/lib/api/v3/work_packages/work_package_representer.rb index fc4d0e7160..0dcbc59979 100644 --- a/lib/api/v3/work_packages/work_package_representer.rb +++ b/lib/api/v3/work_packages/work_package_representer.rb @@ -129,7 +129,7 @@ module API { href: "#{root_url}/api/v3/work_packages/#{represented.work_package.parent.id}", title: represented.work_package.parent.subject - } unless represented.work_package.parent.nil? + } unless represented.work_package.parent.nil? || !represented.work_package.parent.visible? end links :children do