# Bug SPAR-164 - Gantt chart and relations tab are not synchronized

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-164

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.5.0 |
| Observed in versions | 15.4.0 |
| Bug found in version (deprecated) | 15.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

Multiple scenarios

Scenario "dates changed"

1.  Create two work packages, parent and child

2.  Display parent in split panel, and display relations tab
    
    1.  the child is visible, with its subject and dates

3.  From the work package list, edit subject or dates

4.  🔴 In the relations tab, the subject or the dates are not updated

Scenario "outdent hierarchy"

1.  Create two work packages, parent and child

2.  Display parent in split panel, and display relations tab
    
    1.  the child is visible, with its subject and dates

3.  From the work package list or Gantt chart, right click on the child and select "Outdent hierarchy"

4.  🔴 In the relations tab, the work package is still displayed as a child of the other

Scenario "Add predecessor/successor"

1.  Create two work packages with dates "A" and "B"

2.  Display "A" in split panel with relations tab

3.  Right click on the other, "B", on the Gantt chart, select "Add predecessor" or "Add successor" and click on "A"
    
    1.  The relation is created on the Gantt chart
    
    2.  🔴 The relation is not displayed in the relations tab
    
    3.  side note: if it was the one displayed in the split panel ("A") that was right clicked to add a relation, then it would have been updated

There are probably plenty of other scenarios where the work packages list, the Gantt chart, and the relations tab in split view are not up to date with same information.

(from Cécile) Scenario 28 from <mention class="mention" data-id="61054" data-type="work_package" data-text="###61054">###61054</mention>

### What is the buggy behavior?

  - In "dates changed" scenario
    
      - 🔴 the subject and/or dates updated in work packages list is not updated in relations tab
    
      - 🔴 adding a child with dates to a parent with start and finish dates doesn't switch the mode to automatic

  - In "outdent hierarchy" scenario
    
      - 🔴 The outdented work package is still visible as a child in relations tab
    
      - 🔴 (similar issue happens if indenting a work package: the child does not appear in relations tab)

  - In "Add predecessor/successor" scenarios
    
      - 🟢 The predecessor/successor relations added by right clicking first on the work package displayed in split pane are added to the relations tab
    
      - 🔴 The predecessor/successor relations added by right clicking first on clicking on another work package, and then on the one being displayed in split pane are NOT added to the relations tab

### What is the expected behavior?

1.  Gantt chart and relations tab always display the same information

### Screenshots and other files

3 videos have been attached to the work package

### Environment information

**OpenProject version**

Unreleased 15.4 with automatic scheduling changes
