# Feature OP-7518 - Improve error messages on forbidden dates

Project: OpenProject
Status: in specification
URL: https://community.openproject.org/work_packages/OP-7518

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Product Backlog |
| Sprint |  |
| Backlog bucket |  |
| 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 | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

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

## Estimates and progress

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

## Description

Currently, whenever a work package is moved to a date that is prohibited by a relation (because the moved work package has a follows/precedes relation with another work package), an error message of the following format is displayed: 

**can only be set to %{soonest\_start} or later so as not to violate the work package's relationships**

This does not communicate which relation to what work package is responsible for the restriction. Especially when moving a work package in the Gantt chart where some work packages might be filtered out, and by that the relationship not displayed, is becomes hard to understand why a work package cannot be moved in a certain way.

**Acceptance criteria**

Adapt the error message so that

  - if the user is allowed to view the other work package, the other work package is mentioned in the error message.
  - if the user is not allowed to view the other work package, the existence of a relationship to an invisible work package that restricts the movement is mentioned.
