# Bug OP-11174 - Unchecking 'Display subprojects work packages on main projects by default' causes WP Export list to be empty

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11174

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.3.1 |
| Observed in versions |  |
| Sprint | 12.3.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as an admin
2.  Go to the Administration page
3.  Chose Work package tracking
4.  Be sure that 'Display subprojects work packages on main projects by default' is unchecked
5.  Build a Structure of a parent project with a sub project and a next level sub project of that sub project like on the screenshot
6.  Go to the work package list.
7.  Here you should see only the WPs of the parent project
8.  Click on the 'Include projects' button and check 'Include all sub-projects'
9.  Here you should see all WPs of parent project, sub project and next level sub project.
10. Press the three dots menu and chose Export XLS with descriptions

### What is the buggy behavior?

Export is an empty Excel Sheet

### What is the expected behavior?

Export works as expected to dsiplay all WPs from point 9.

### Important note

You are able to workaround the issue by unchecking 'Include all sub-projects' and checking the sub project and the next level sub project manually by clicking each of them.

### **Logs**

n/a

### Screenshots and other files

*<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/38760/content">*

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
- [ ] Docker All-in-one container
- [x] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

12.2.1

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

English / German
