# Feature SPAR-97 - Allow users to enter negative lag

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

## Planning

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

## OPEN POINTS / FEEDBACK

| ID | Subject | Status | Decision |
| --- | --- | --- | --- |
| SPAR-86 | For negative lag, should there be a maximum value? (For example, the duration of the work package) | new |  |
| SPAR-266 | Should lag = 0 means start the same day as predecessor end date? | new |  |

## Use cases

_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 |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| 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 member or project manager  
**I want to** to be able to specify negative lag  
**so that** I can specify that a work package has to start a few days *before* the finish date of another one

**Acceptance criteria**

  - In the add and edit relations modal (for successors and predecessors):
    
      - Let users enter a negative value for lag
    
      - Change caption of Lag field to:
        
          - "The minimum number of working days in between the two work packages. It can also be negative."

  - Negative lag only takes working days into account
    
      - *Note: This will be challenged later with <mention class="mention" data-id="63460" data-type="work_package" data-text="##63460">\#\#63460</mention>*

  - For successors for which 'Working days only' is off (such that they *could* possibly be scheduled on a weekend, for example), lag will still skip non-working days.
    
      - Eg. Assuming Sat and Sun are NWD, for a work package starting whose derived start date is normally on a Tuesday with a 0 days lag, a lag of -2 would mean that it now starts on Friday of the previous week and not Sunday.

  - Resize the lag input field with `input_width: :small`

**Related open point**

  - <mention class="mention" data-id="57211" data-type="work_package" data-text="##57211">\#\#57211</mention>

  - <mention class="mention" data-id="64261" data-type="work_package" data-text="##64261">\#\#64261</mention>
