# Bug OP-1192 - First Journal Entry of chiliproject issues shows incorrect diff

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 3.0.1 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Markus Kahl |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

Work packages created in chiliproject 1.5 which has then been migrated to OpenProject 3.0 show an incorrect diff for the first journal note:

![](faulty-first-journal.png)

This happens because in the migration from chiliproject 1.5 to OpenProject 2.4 (which is the first step of the migration to OpenProject 3.0) an initial journal entry is amended (version 1, wheres the originally the journals started at version 2). The amended initial journal entry has a higher record ID than the following versions created in the past. Due to the specific implementation of how a journal’s predecessor is queried the predecessor (the initial journal entry) of note <mention class="mention" data-id="1" data-type="work_package" data-text="#1">#1</mention> cannot be found. This leads to all attributes being shown as changed.

PR [5322](https://github.com/opf/openproject/pull/1039)
