# Feature SPAR-124 - Allow children creation from the new Relations Tab

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-124

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 15.3.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

| ID | Type | Subject | Status | Assignee | Target versions | Spent time | Module |
| --- | --- | --- | --- | --- | --- | --- | --- |
| SPAR-138 | Bug | 500 error is shown if the add existing child form is saved without a WP in the form | closed |  | 15.3.0 |  |  |
| SPAR-131 | Bug | Display messed up after creating child from relations tab in split view | closed |  | 15.3.0 |  |  |
| OP-16647 | Bug | Cannot create child from relations tab in status-based progress calculation mode | closed |  | 15.3.0 |  |  |
| SPAR-135 | Bug | Impossible to add a new relation from Board split view (doesn't happen for all WPs) | rejected |  | 15.3.0 |  |  |

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/HrWVktq0SsGI2dqqIKQ11M/Scheduling---Lag-and-Modes?node-id=833-24780 |
| Build Number |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Oliver Günther |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** a user  
**I want to** be able to create new children from the relations tab  
**so that** I don't need to go to the work package table to do so

**Acceptance criteria**

  - Add a new option to the "+ Relation" dropdown with "New child" and rename the current "Child" to "Existing child". Reorder the dropdown options to have the child related actions to the top.

  - Keep the current behaviour with "Existing child".

  - When there are already children related add a button to the box top header with a "+ Child" dropdown button that will open a dropdown with "New child" and "Existing child" options.

  - For the "New child" action open a dialog size X-large with the following fields:
    
    1.  **Type \*:** Work package type dropdown. The first assignable type is selected by default.
    
    2.  **Subject \*:** A single line field to write the subject. Focused by default if there are no errors in the form.
    
    3.  **Description:** A non mandatory description text area with the Primer style CK Editor used also in Meetings.
    
    4.  All mandatory fields for that type \[**Field name \***\]: Include and dynamically load all the mandatory fields required for that work package type.

  - Once the user clicks on Create the dialog closes, the new child is added to the list of children work packages in the relations tab and a success message is displayed saying "New work package created and added as a child".

  - A work package with milestone flag cannot have children, so the "New child" option should be absent in this case (like for "Exisiting child") (see <mention class="mention" data-id="28745" data-type="work_package" data-text="#28745">#28745</mention> for a prior bug about it, and <mention class="mention" data-id="60512" data-type="work_package" data-text="#60512">#60512</mention> for a more recent one).

**Visuals and Figma**

<https://www.figma.com/design/HrWVktq0SsGI2dqqIKQ11M/Scheduling---Lag-and-Modes?node-id=833-24780>
