# Bug OP-11440 - Parent of predecessor work package not available to be set as parent of following work package

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.4.0 |
| Observed in versions | 12.3.0 |
| Sprint | 12.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.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

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Have three work packages:
    1.  &quot;Parent of predecessor&quot;
    2.  &quot;Predecessor child&quot;
    3.  &quot;Follower child to be&quot;
2.  &quot;Parent of predecessor&quot; is the parent of &quot;Predecessor child&quot;
3.  &quot;Predecessor child&quot; is the predecessor of &quot;Follower child to be&quot;
4.  Go to the split/full screen of &quot;Follower child to be&quot;
5.  Try to set &quot;Parent of predecessor&quot; as the parent by clicking on &quot;+ Set parent&quot; first and then inserting the name of the intended parent e.g. &quot;Parent of&quot;

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/40698/content"></div><figcaption class="op-uc-figure--description">Setup</figcaption></figure>

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/40696/content"></div><figcaption class="op-uc-figure--description">Going to relations tab of &amp;quot;Follower child to be&amp;quot;</figcaption></figure>

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/40697/content"></div><figcaption class="op-uc-figure--description">Attempting to set the parent</figcaption></figure>

### What is the buggy behavior?

_Please describe the bug with as most details as possible. Example:_

*   The legitimate parent candidate is not suggested by the autocompleter

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  The legitimate parent candidate should be listed by the autocompleter

### **OpenProject version**

12.3.2

### Workaround

The relationship can be created the other way around. In the example above, go to the parent (&quot;Parent of predecessor&quot;), switch to the Relations tab and click on &quot;Add existing child&quot;. There, the following work package (&quot;Follower child to be&quot;) will show up.

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/40695/content"></div><figcaption class="op-uc-figure--description">Workaround</figcaption></figure>
