# Bug OP-7636 - Task "Start Date in less than" filter does not include dates in the past.

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-7636

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.2.3 |
| Observed in versions |  |
| Sprint | 11.2.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: Cloud Edition

Operating System / Browser / OpenProject language: Win10 / Chrome / EN

### **Steps to reproduce:**

1.  Create a view anywhere (in a project or My Page), set a filter for Start date, in less than, n days

Before filter is applied:

<figure class="image op-uc-figure" style="width:46.07%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19172/content"></div>
<figcaption class="op-uc-figure--description">View before the filter is applied. Note the &amp;amp;amp;amp;quot;Test overdue&amp;amp;amp;amp;quot; task, which disappears below. HELP! that&amp;amp;amp;amp;#39;s the most important one!</figcaption></figure>

View before the filter is applied. Note the "Test overdue" task, which disappears below. HELP\! that's the most important one\!

After filter is applied:

<figure class="image op-uc-figure" style="width:38.21%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19171/content"></div><figcaption class="op-uc-figure--description">The view with the filter applied. Nicht gut.</figcaption></figure>

The view with the filter applied. Nicht gut.

### **Actual Behavior**

**(Note the "Workaround" section in the expected behavior)**

Only work pages with a start date of TODAY and up to the days set into the future. Tasks that started more than 1 day AGO are not displayed.

NB: Yes, there is a filter to look at days in the past "is less than days ago" but this makes it impossible to create a view for all tasks that are both due in a few days and that are currently active or overdue. In our use case, this is really the only logical view to use. Now we all are using two views, which is very cumbersome:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/19173/content"></div><figcaption class="op-uc-figure--description">My designers have to use two views, this should not be necessary.</figcaption></figure>

My designers have to use two views, this should not be necessary.

### **Expected Behavior**

All tasks with a start date of \<n days (including those with a start date in the past) should be displayed. Simple math: **-5 \< 7**, or at least that is what I learned in school\!

**Workaround**: Use the filter "more than days ago" and enter a negative value. Ensure that the up / down arrows work correctly (remove `min="0"` attribute from input element)
