# Feature SPAR-109 - Highlight closest predecessor in the relations tab

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

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 15.4.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/HrWVktq0SsGI2dqqIKQ11M/Scheduling---Lag-and-Modes?node-id=175-3641 |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

**As a** project manager  
**I want to** understand the relations constraints when setting dates or switching scheduling mode  
**So that** I feel in control and avoid switching to Gantt view to understand relations.

#### Acceptance criteria

*   When there are multiple predecessors, the one setting the date of the current work package has a label that says &quot;Closest&quot; next to the date and lag information
    
    *   The closest is the predecessor which has the latest due\_date combined with the lag
        
    *   When two predecessors or more have the same end date, by convention the oldest one is chosen as the closest (_created\_at_ field).
        
*   This information is shown in the relations tab, as well as in the Datepicker.
    
*   The closest label also applies to &quot;ghost relations&quot; (relations of which the user is not able to view the details).
    
*   The closest label is also displayed in manual mode; this is useful to see which predecessor _would_ determine the start date if the present work package were to be moved back to automatic.
    

#### Visuals

_**Note:** Please check_ [_Figma_](https://www.figma.com/design/HrWVktq0SsGI2dqqIKQ11M/Scheduling---Lag-and-Modes?node-id=175-3641) _for the most recent mockups._

**Date picker Predecessors tab:**

<img class="image_resized op-uc-image op-uc-image_inline" style="width:540px;" src="/api/v3/attachments/226781/content">
