# Bug OP-1620 - API v2: parent id not returned when using ids-filter (regression)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 3.0.13 |
| Observed in versions |  |
| Sprint | 3.0.13 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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

  - Create a child work package via API

<!-- end list -->

  - Fetch work package using planning element index action

Before 3.0.12, the ids-filter was ignored, which caused way too many work packages to be returned.

## Suggested Solution

In order to maintain compatibility with the existing “parent rewiring semantics” (which the timelines module relies on), an additional parameter `rewire_parents` should be added:

  - If true or left out, the current behavior applies
  - If false, `parent_id` is populated
