# Feature SPAR-112 - Add dialog when successor must switch to manual mode to preserve its dates

Project: Stream Planning and Reporting
Status: in specification
URL: https://community.openproject.org/work_packages/SPAR-112

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Product Backlog |
| 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 |  |
| 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 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| 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** automatically move a set of work packages to the earliest date possible  
**So that** I don't have to do this manually.

#### Acceptance criteria

##### Gantt view

  - If  a successor that is automatically scheduled can no longer derive its dates from the predecessor (i.e, because no predecessor has dates).
    
      - It remains in automatic mode, but loses its dates.

  - When a successor loses its one and only predecessor (i.e the last predecessor relationship is removed), the work package can no longer be in automatic mode.
    
      - Show a Primer confirmation: "This removes the the only predecessor, so the successor will automatically be switched to manual scheduling mode."
        
          - Actions: "Cancel" (secondary), "Remove" (danger)
    
      - The successor automatically switched to manual.

  - ~~If the dates of a predecessor of an automatically scheduled work package are removed, and the successor has dates, the successor should go into manual mode. But we need to ask the user for confirmation:~~
    
      - ~~"This work package has at least one automatically scheduled successor. Removing the dates here will switch the successor to manual scheduling to preserve its dates."~~

  - ~~If all predecessors of an automatically scheduled work package are deleted:~~
    
      - ~~If the successor has dates, it should switch to manual mode. User confirmation is asked:~~
        
          - ~~"This work package has at least one automatically scheduled successor. Deleting this work package will switch the successor to manual scheduling to preserve its dates."~~
    
      - ~~The relation is deleted~~

#### Visuals

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

No visuals for now.
