# Bug OP-17843 - API: List time entries work_package filter not work anymore

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | API, Modules and project features / Time tracking |
| Target versions | 16.4.0 |
| Observed in versions | 16.3.0 |
| Sprint | 16.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.3.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| 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

### Steps to reproduce

1.  Do an API request to the `GET /api/v3/time_entries` endpoint
    
2.  Apply the following filter &nbsp;`[{"work_package":{"operator":"=","values":["5"]}}]`
    
    <br>
    
    Example in curl:
    

```bash
curl -u "apikey:$OP_API_KEY" \
-X GET "https://openproject.local/api/v3/time_entries?offset=1&filters=+%5B%7B%22work_package%22%3A%7B%22operator%22%3A%22%3D%22%2C%22values%22%3A%5B%225%22%5D%7D%7D%5D"
```

<br>

### What is the buggy behavior?

*   You get the following error message:
    

```json
{
  "_type": "Error",
  "errorIdentifier": "urn:openproject-org:api:v3:errors:InvalidQuery",
  "message": "Filters Work package filter does not exist."
}
```

### What is the expected behavior?

1.  The filter works as it did in 15.0.0
    
    <br>
