# Bug OP-16889 - Some macros cannot be used (displayed behind modal) while creating a new child via relations tab

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / CKEditor5, Frontend components and Primer design system |
| Target versions | 17.3.1 |
| Observed in versions | 15.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.4.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 | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

<br>

1.  Login as a user with permissions edit work packages
    
2.  Go to a project and open a work package, navigate to the _relations_ tab
    
3.  Click on \[+ Relation\] -&gt; New Child to create a new child work packages from within the relations tab.
    
4.  In the _description_ field, click on _Macros_ to open the selection of available macros
    
5.  Try to add _insert create work package button_ OR _Embed work package table_
    

### What is the buggy behavior?

*   Both macros open a new modal (with settings) behind the currently opened modal for a new work package. They cannot be used.&nbsp;
    

### What is the expected behavior?

<br>

1.  The modal which allows to edit settings for the selected macro appears in front and can be edited.
    
2.  The selected macro can be used in the description
    

###   

### Screenshots and other files

<br>

See attached _Macros-Child-Relations.mp4_

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
    

**OpenProject version**

_15.4.1_

**Browser**

*   [ ] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Other (Vivaldi)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_EN/DE tested_
