# Bug OP-12343 - Cannot archive a project that has archived sub-projects

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-12343

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.5.3 |
| Observed in versions | 12.5.0 |
| Sprint | 12.5.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.5.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Wieland Lindenthal |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Create a project, with multiple sub projects. (In my case had 3 levels of projects and was archiving them from the bottom up)
2.  Archive all the sub projects.
3.  Archive the parent project.
4.  Fails to archive projects even though all sub-projects are already archived.

### What is the buggy behavior?

Get error that you don't have permissions to all the sub-projects

### What is the expected behavior?

The project gets archived.

### 

### **Logs**

No Logs

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*Example: v12.5.2*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

English
