# Feature SPAR-150 - Relations tab: Auto-scroll to a newly-created child

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 18.0.0 |
| 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 / Relations and scheduling |
| 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 |  |
| Developers | David Friquet |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**Context**

Users are now able to add new relations direcly from the Relations tab of a work package. Because users might not always see the newly added work package if there are a lot of relations (and certain ones like Children show towards the end of the list), we implemented auto-scroll behaviour for immediately feedback so the user sees the relation she added: <mention class="mention" data-id="59769" data-type="work_package" data-text="##59769">##59769</mention>

However, after that feature was merged, we decided to allow users to create children directly from the Relations tab: <mention class="mention" data-id="60273" data-type="work_package" data-text="##60273">##60273</mention>. This feature seeks to simply harmonise and extend this behaviour to newly created children.

**Acceptance criteria**

  - After a user adds a new child via the Relations tab, when the new child has been added to the 'Children' section the Relations tab:
    
      - Auto-scroll so that the new relation is visible to the user

**Technical notes**

  - \-

**Permissions and visibility considerations**

  - Respect existing visibility/permissions and show ghost relations accordingly (<mention class="mention" data-id="58427" data-type="work_package" data-text="#58427">#58427</mention>)

**Out of scope**

  - \-
