# Bug PIR-109 - PIR PDF and PMflex artefacts are only shown after 2nd WP status change

Project: Project Inititation Requests
Status: closed
URL: https://community.openproject.org/work_packages/PIR-109

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Project creation, Modules and project features / Export / PDF Export |
| Target versions | 17.7.0 |
| Observed in versions | 17.2.0 |
| Bug found in version (deprecated) | 17.2.x |
| 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 |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Use the PIR creation wizard with **PDF as work package attachment**

2.  Submit a PIR

3.  Change PIR WP status once

4.  Change status again

Note: As the new PMflex artifacts <mention class="mention" data-id="75702" data-type="work_package" data-text="#DREAM-711" data-display-id="DREAM-711">\#DREAM-711</mention> are using the same code flow, this bug turned up there, too.

### What is the buggy behaviour?

  - The PDF for each changes are created, but only displayed after changing the status a 2nd time or any other unrelated change to the work package

### What is the expected behaviour?

1.  New PDF is created for each status change

### Out of scope

  - Within the **first** journal aggregation time after creating the work package, no change will be visible in the activity report, including links to the PDF. PDF is still created though.

  - The file tab in the work packages view is not updated automatically. It requires a page reload to show the added PDFs.

### Environment information

**OpenProject version**

Core build

[1e7a01e9e75fe117d81afe07e8401451eaaa7eb5](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommits%2F1e7a01e9e75fe117d81afe07e8401451eaaa7eb5)

Product version

[3614987b3ab1538ba25f9cfc89a8a31a5d1e4128](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommits%2F3614987b3ab1538ba25f9cfc89a8a31a5d1e4128)

Core version

OpenProject 17.1.0

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [x] Windows
- [x] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)
