# Feature DREAM-796 - Show subitem widget only when subitems exist

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-796

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 17.9.0 |
| Sprint |  |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module | Modules and project features / Project overview / Widget, Modules and project features / Project creation |
| Feature Flag |  |
| Requires doc change | Yes |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Behrokh Satarnejad |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

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

## Description

**As** a project member  
**I want to** see the subitems widget only when it adds value  
**so that** I have a clean project overview.

# **Acceptance criteria**

*   Hide the widget if there are no children and the user has no permission to create subprojects.
    

<br>

**For portfolios**

*   We display aways the `Subitems widget` no matter if the user has permissions or not to add elements as Portfolios are meant to have subitems below them.&nbsp;
    
*   For users with permissions to create subitems, on top of the current actions in the widget we add an action on the three dots menu in the PageHeader.
    

**For programs:**

*   Same here, we display aways the `Subitems widget` no matter if the user has permissions or not to add elements as Programs are meant to have subitems below them. 
    
*   For users with permissions to create subitems, on top of the current actions in the widget we add an action on the three dots menu in the PageHeader.
    

**For projects:** 

*   Hide the widget if there are no children
    
*   But, if the user has permissions to create subitems now they can do it through the new action on the three dots menu in the PageHeader.
