Content
View differences
Updated by Marc Alcobé over 1 year ago
**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.
2. **Subject \*:** A single line field to write the subject.
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 children".
**Visuals and Figma**
https://www.figma.com/design/HrWVktq0SsGI2dqqIKQ11M/Scheduling---Lag-and-Modes?node-id=833-24780
**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.
2. **Subject \*:** A single line field to write the subject.
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 children".
**Visuals and Figma**
https://www.figma.com/design/HrWVktq0SsGI2dqqIKQ11M/Scheduling---Lag-and-Modes?node-id=833-24780