# Bug OP-16382 - Hierarchy custom field - PDF export output display only last item without hierarchy

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Export / PDF Export, Modules and project features / Work packages, Modules and project features / Export / XLS Export |
| Target versions | 16.2.0 |
| Observed in versions | 15.2.0 |
| Sprint | 16.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.2.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.  Create a work package custom field of type Hierarchy
    
2.  Export the work package to PDF&nbsp;
    

### What is the buggy behavior?

*   In the exported hierarchy field the output is only the item name (without displaying the full hierarchy)
    
*   This create confution when two hierarchy branches have an item of the same name
    

For exemple if the hierarchy looks like this :

*   Supplier (SUPL)
    
    *   Documentation (DOC)
        
*   Customer (CUST)
    
    *   Documentation (DOC)
        

There is no way to differentiate those two items in the PDFexport (also CSV/XLS if the field is used as a column in the work package table).

### What is the expected behavior?

*   The formatting shows the full hierarchy path for each item
    

### Screenshots and other files

<figure class="image image_resized op-uc-figure" style="width:678px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/257671/content"></div><figcaption class="op-uc-figure--description">Behaviour on Open Project V15.1.0</figcaption></figure>

### Environment information

**OpenProject installation type**

*   Self-Hosted
    
*   Packaged installation
    
    *   Ubuntu
        

**OpenProject version**

_V15.0.1_

**Out of scope**

*   Multiline display: If the hierarchy is a **multiselect** field, entries are shown **comma-separated** \- not in several lines as in the web.
