# Feature OP-19987 - PMflex Artefact PDF: Include project phases and budgets

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

## Planning

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

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Export / PDF Export |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan | Community (COM) |

## Details

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

## People

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

## Estimates and progress

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

## Description

**As** a project portfolio manager  
**I want to** export a PMflex artefact including project phases and budgets  
**so that** they are included as part of the report

**Acceptance criteria**

*   Optionally include project budgets&nbsp;
    
    *   Budgets are rendered as a cost breakdown per budget   
        with columns for quantity, description, cost per unit and sum
        
    *   Each budget shows its id, subject and  total, then its  unit costs and  labor costs as separate groups, each group with a subtotal
        
    *   The section closes with a total across all budgets of the project
        
    *   Amounts the viewer is not allowed to see are left blank, as they are in the budget views
        
        <figure class="image image_resized op-uc-figure" style="width:292px;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/923932/content"></div><figcaption class="op-uc-figure--description">Mockup</figcaption></figure>
        
*   Optionally include project lifecycle
    
*   The options are added to the export settings and export dialog
    

**Permissions and visibility considerations**

Project lifecycles:

*   `view_project_phases` - without it the project lifecycle section is omitted, even when the option is enabled
    

Budgets:

*   module enabled in the project - without it the budgets section is omitted, even when the option is enabled
    
*   `view_budgets` - without it the budgets section is omitted; only budgets the viewer may see are listed
    
*   `view_cost_rates` - required for unit cost amounts and the  unit costs subtotal; left blank without it
    
*   `view_hourly_rates` - required for labor cost amounts and the labor costs subtotal; left blank without it
    
*   `view_own_hourly_rate` - a viewer with only this permission sees the numbers of their own labor cost items
    
*   Subtotals and totals cover only the amounts the viewer may see, so a partially permitted viewer can see blank amounts that do not add up to the subtotal shown
    

**NOTE:** permissions used when the PMlex artefact is exported automatically on work package status change.   
The export is done with the permissions of the user who triggered the export (by changing the state),   
so this must be done by the user who has all necessary permissions to have the fields visible in the PDF.

**Out of scope**

*   Graphics like Spent progress bar or Project phase timeline
