Content
Updated by Andrej Sandorf 3 days ago
  **As** a user   
**I want to** include long text custom fields in my work package description
**so that** can export the information
Current:
<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><figure class="image image_resized op-uc-figure" style="width:368px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/798612/content"></div><figcaption class="op-uc-figure--description">Input</figcaption></figure></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><figure class="image image_resized op-uc-figure" style="width:586px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/798613/content"></div><figcaption class="op-uc-figure--description">PDF</figcaption></figure></td></tr></tbody></table></figure>
  
  
  
 **Acceptance criteria** 
* Non-nested custom long text fields referenced by a macro in a description are included in the export.
    
* Supported positions are the root level of a document (but e.g. NOT in table cells)
        
* Nested positions are supported everywhere if the long text only includes basic text formatting (NOT images, tables, lists, etc.)
        
  
    
 **Technical notes** 
* "Non-nested" refers to macros like `workPackageValue:richtextfield` or `projectValue:richtextfield` are not inserted into another formatting, like tables, quotes, lists, etc.   
     As _long  long text fields_  fields can contain all of those formatting structures  formattings themselves and even contain other rich text macros, which are not fully supported by the PDF ruby gem.  macros. 
    
* We can look into supporting nested ones as well if they don&#39;t contain any of these. 
    
**Permissions and visibility considerations**
* _No changes required for permissions, handled as with other custom fields_
    
**Out of scope**
* Nested long text field macros with tables, images, etc.
    
**Note to the docs team**
[Documentation is updated](https://community.openproject.org/projects/openproject/work_packages/68540/activity#comment-1478928)
  
        **I want to** include long text custom fields in my work package description
**so that** can export the information
Current:
<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><figure class="image image_resized op-uc-figure" style="width:368px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/798612/content"></div><figcaption class="op-uc-figure--description">Input</figcaption></figure></td></tr><tr class="op-uc-table--row"><td class="op-uc-table--cell"><figure class="image image_resized op-uc-figure" style="width:586px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/798613/content"></div><figcaption class="op-uc-figure--description">PDF</figcaption></figure></td></tr></tbody></table></figure>
* Non-nested custom long text fields referenced by a macro in a description are included in the export.
* Supported positions are the root level of a document (but e.g. NOT in table cells)
* Nested positions are supported everywhere if the long text only includes basic text formatting (NOT images, tables, lists, etc.)
* "Non-nested" refers to macros like `workPackageValue:richtextfield` or `projectValue:richtextfield` are not inserted into another formatting, like tables, quotes, lists, etc.
* We can look into supporting nested ones as well if they don&#39;t contain any of these.
**Permissions and visibility considerations**
* _No changes required for permissions, handled as with other custom fields_
**Out of scope**
* Nested long text field macros with tables, images, etc.
**Note to the docs team**
[Documentation is updated](https://community.openproject.org/projects/openproject/work_packages/68540/activity#comment-1478928)