# Bug OP-16726 - Work package exports also show subprojects despite being excluded

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Export / PDF Export, Modules and project features / Work packages |
| Target versions | 16.4.0 |
| Observed in versions | 15.3.0 |
| Sprint | 16.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.3.x |
| 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 | Andrej Sandorf |
| 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 a user
    
2.  Go to a project which has sub-projects
    
3.  Go to work packages
    
4.  Set the filter to exclude sub-projects
    
5.  Export any export e.g. PDF Gantt chart
    

### What is the buggy behavior?

*   The PDF export includes work packages from sub-projects
    

### What is the expected behavior?

1.  The PDF export should only show the work packages for the parent project
    
2.  The PDF export should respect the filters set
    

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
