Content
View differences
Updated by Marc Alcobé about 4 years ago
**As** a team member
**I want to** (un)select all sub-projects from projects a project in the include projects modal
**so that** I don't need to select manually all the sub-projects bellow one project. And also I assure all sub-projects created afterwards in this project will be automatically added. have the option to select a parent without selecting its sub-projects.
**Acceptance criteria**
### **Generic case:**
A checkbox link button appears on hover that allows the action bar of the modal that enables user on hover to select all the sub-projects from all a parent project. This selection then will force that hover appears when the mouse is on top of the parent project or all all the sub-projects bellow a (excluding the top parent project selected will be checked and not able to unselect. of the list that only has the hover behaviour on itself).
By default Once you click the current project will always be link and all the sub-projects are selected (and in the case of include link change to "unselect all sub-projects selected also its sub-projects). sub-projects" (this will switch back to "select all sub-projects" if manually a sub-project is unselected).
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30061/content"></div></figure> src="https://community.openproject.org/api/v3/attachments/27246/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30062/content"></div></figure> src="https://community.openproject.org/api/v3/attachments/27247/content"></div></figure>
When the checkbox is unselected title of the user project is able really long or there is multiple levels of hierarchy that will lead to chose manually which projects an overlapping between the title of the project and sub-projects the hovering button we can be included.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30060/content"></div></figure>
For user support reasons while hovering on top extend the modal width until a maximum of an inactive checkmark (can't be unchecked) a tooltip "X px". When this maximum is reached and the title is still overlapping with the hover button we will be displayed explaining why: truncate the title.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30063/content"></div></figure> src="/api/v3/attachments/27747/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30064/content"></div></figure>
### Cases:
* **Creation of a new sub-project:** when a new **Note:** Please note that select all sub-project is created under a selected parent in the view, desktop only feature. This behaviour will not happen in case of having tablet or mobile as there is no hover.
###
### Administration case:
When the "Include work package from subproject" setting under "Administration > Work packages" the (un)select all sub-projects" checkmark selected this sub-project sub-projects hover button will automatically also not appear and the selection will be selected.
like:
* **Administration "sub-project" setting:** when in All the "Administration>Work packages" the select all sub-projects setting is active by default of the "Include all sub-projects" checkmark current project will be automatically selected in the modal (the user and will still not be able to uncheck it).
unselect them.
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27852/content"></div></figure>
* **Unmark "Include all sub-projects" after When selecting some parents:** In case of selecting some parents while having a parent project from the "Include list all sub-projects" checkmark selected and then unselect it, all the sub-projects will come back be automatically selected and not be able to the previous selection status before the "Include all sub-projects" selection. unselect them.
### Mobile:
For the mobile view the action bar will need to be divided in two lines:
<figure class="image op-uc-figure" style="width:50%;"><div style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30065/content"></div></figure>
### Figma Links:
https://www.figma.com/file/rddHeKCAkJo2MNI2zktSaR/Include-Projects?node-id=309%3A35574 src="/api/v3/attachments/27853/content"></div></figure>
**I want to** (un)select all sub-projects from projects
**so that** I don't need to select manually all the sub-projects bellow one project. And also I assure all sub-projects created afterwards in this project will be automatically added.
**Acceptance criteria**
### **Generic case:**
A checkbox
By default
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30061/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30062/content"></div></figure>
When the checkbox is unselected
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30060/content"></div></figure>
For user support reasons while hovering on top
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30063/content"></div></figure>
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/30064/content"></div></figure>
### Cases:
* **Creation of a new sub-project:** when a new
###
### Administration case:
When
<figure class="image op-uc-figure" style="width:75%;"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27852/content"></div></figure>
### Mobile:
For the mobile view the action bar will need to be divided in two lines:
<figure class="image op-uc-figure" style="width:50%;"><div
### Figma Links:
https://www.figma.com/file/rddHeKCAkJo2MNI2zktSaR/Include-Projects?node-id=309%3A35574