Content
View differences
Updated by Marc Alcobé about 4 years ago
**As** a team member
**I want to** (un)select all sub-projects from 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 have the option to select a parent without selecting its sub-projects.
**Acceptance criteria**
### **Generic case:**
A link button appears on hover that allows the user on hover to select all the sub-projects from a parent project. This hover appears when the mouse is on top of the parent project or all all the sub-projects (excluding the top parent project of the list that only has the hover behaviour on itself).
Once you click the link and all the sub-projects are selected the link change to "unselect all 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="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="https://community.openproject.org/api/v3/attachments/27247/content"></div></figure>
When the title of the project is really long or there is multiple levels of hierarchy that will lead to an overlapping between the title of the project and the hovering button we can extend the modal width until a maximum of "X px". When this maximum is reached and the title is still overlapping with the hover button we will 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/27747/content"></div></figure>
**Note:** Please note that select all sub-project is a desktop only feature. This behaviour will not happen in tablet or mobile as there is no hover.
###
### Administration case: Edge questions
When the "Include work package from subproject" setting under "Administration > Work packages" the (un)select all sub-projects hover button will not appear and the selection will be like:
* All the sub-projects of the current project will be automatically selected and will not be able to 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>
* When selecting a parent project from the list all the sub-projects will be automatically selected and not be able to 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/27853/content"></div></figure>
**I want to** (un)select all sub-projects from 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 have the option to select a parent without selecting its sub-projects.
**Acceptance criteria**
### **Generic case:**
A link button appears on hover that allows the user on hover to select all the sub-projects from a parent project. This hover appears when the mouse is on top of the parent project or all all the sub-projects (excluding the top parent project of the list that only has the hover behaviour on itself).
Once you click the link and all the sub-projects are selected the link change to "unselect all 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="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="https://community.openproject.org/api/v3/attachments/27247/content"></div></figure>
When the title of the project is really long or there is multiple levels of hierarchy that will lead to an overlapping between the title of the project and the hovering button we can extend the modal width until a maximum of "X px". When this maximum is reached and the title is still overlapping with the hover button we will 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/27747/content"></div></figure>
**Note:** Please note that select all sub-project is a desktop only feature. This behaviour will not happen in 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 hover button will not appear and the selection will be like:
* All the sub-projects of the current project will be automatically selected and will not be able to 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>
* When selecting a parent project from the list all the sub-projects will be automatically selected and not be able to 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/27853/content"></div></figure>