# Feature OP-16633 - PDF export of a single work package follows work package form configuration including related wp tables

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 15.5.0 |
| Sprint | 15.5.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| OP-16880 | Bug | Long text CF not displayed when empty | closed |  | 15.5.0 |  |  |
| OP-16879 | Bug | Insufficient space between table header and the border | closed |  | 15.5.0 |  |  |
| OP-16877 | Bug | Status is not readable when status color is black | closed |  | 15.5.0 |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan | Community (COM) |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by | Niels Lindenthal |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

Currently, the single work package export uses the work package form configuration (Administration -&gt; Work packages -&gt; Types -&gt; Type -&gt; Form configuration), but not the order and attribute groups defined in there. It just lists them in a table.&nbsp;

Attribute group titles and Query groups are not included at all. Long text custom fields are listed below the description and not as they are configured. The `Date` field is split into Start date/End date/Duration. ID, Type and Status are included in the table.

<figure class="image image_resized op-uc-figure" style="width:566px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/367012/content"></div><figcaption class="op-uc-figure--description">Current export</figcaption></figure>

**Acceptance criteria**

_Attributes table:_

*   Follow the exact work package form configuration
    
    *   Include attribute groups title
        
    *   Follow order of groups and attributes
        
    *   Include Query groups (related wp tables)  
        If there are none work packages, a &quot;\[No work packages\]&quot; message will be displayed instead
        
        If a Query group table does not fit on page, show a red inline message and omit it
        
    *   no borders, Capitalization (Not all-uppercase) in the header row
        
    *   Include Long text custom fields (at their configured position)
        
    *   The `Date` field is displayed as in the web (not split)
        
    *   Remove ID, Type or Status from the attribute tables
        

Styling:

*   No borders for the attribute tables and query group tables
    
*   Line below attribute groups title (but not Query groups)
    
*   Capitalization (Not all-uppercase) of labels in the attribute tables and query group table header rows
    
*   The headline should be `Type` #`ID` - `Subject` (`Status`) and linked to the work package
    
*   The status in the headline is a badge in the color of the status
    

<figure class="image image_resized op-uc-figure" style="width:419px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/369697/content"></div><figcaption class="op-uc-figure--description">Export with query groups, group titles...</figcaption></figure>

_PDF:_

*   Export option to change paper orientation (landscape, portrait), so tables with too many columns might fit.
    

<figure class="image image_resized op-uc-figure" style="width:395px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/367021/content"></div><figcaption class="op-uc-figure--description">Add setting to export modal</figcaption></figure>

**Out of scope**

*   Infos from the tabs (Activity, Files, Relations, Watchers, Meetings)
    

**PR**

https://github.com/opf/openproject/pull/18150
