# Bug OP-20326 - Archived projects should be clearly distinguishable when adding projects in projects selector

Project: OpenProject
Status: review failed
URL: https://community.openproject.org/work_packages/OP-20326

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Type/Variants and Workflows, Administration |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0, 17.9.0, 17.8.1 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 |  |
| Product manager |  |
| Developers | David Friquet |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Enable type variants
    
2.  Create and archive a project
    
3.  Go to Administration &gt; Work package &gt; Type &gt; select a type &gt; Projects tab
    
4.  Click &quot;Add projects&quot; button
    
5.  Find the archived project
    

### What is the buggy behavior?

*   It looks like a normal project that is still active
    

(By the way, when ticking it and clicking &quot;Add&quot;, it shows the error &quot;There are also work packages in projects you cannot see.&quot; for a variant selected when the parent type is already active in the project, and the error &quot;project xxx: may not be accessed.&quot; when the type is not used in the project. Both error messages are obscure).&nbsp;

### What is the expected behavior?

*   Do not show archived projects in the &quot;Add new project to type/variant&quot; dialog
    
*   We continue to show them in the Project tab for a Type but using the &quot;archived&quot; variant of the InfoLine component
    
*   `Include sub-items` checkbox skips the archived children, too;
    
*   `Enable for all projects` button skips the archived projects, preventing the `may not be accessed` errors.
    

### Screenshots and other files

On qa.openproject-stage.com, project &quot;Projet archivé de Christophe&quot; is archived:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925051/content">

And it is shown as archived in the projects selector of the workflow page, formatting/rendering of it is consistent with how it is rendered in the projects list

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925053/content">

But not in the project selector:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925055/content">

Same in 18.0-dev:

On qa.openproject-edge.com, project &quot;Projet archivé de Christophe&quot; is archived

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925057/content">

And it&#x27;s not properly identified as such in the projects selector of the type

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925058/content">

~~It looks like there is some kind of support for archived projects though, and it can&#x27;t be selected, which is nice, but the way it is rendered is inconsistent:~~

*   ~~light gray with &quot;(archived)&quot; suffix in projects list~~
    
*   ~~even lighter gray without any suffix in type projects selector~~
    

Actually I&#x27;m wrong, the &quot;[Julia test test](https://qa.openproject-edge.com/projects/JUTT)&quot; project is not archived. ~~I don&#x27;t know why it&#x27;s disabled~~. Ok I got it now, it&#x27;s disabled when it&#x27;s already added. That was not obvious for me on first try.

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925046/content">

<br>

And the projects selector in custom fields is working a bit differently and does not show archived projects (here on QA edge):

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/925059/content">

I did not test every variation of the project selector pages.

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
    
    *   qa.openproject-stage.com
        
    *   qa.openproject-edge.com
        

**OpenProject version**

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">aws-de-trials1.openproject-stage.com</p></td><td class="op-uc-table--cell"><p class="op-uc-p">17.9.0</p></td><td class="op-uc-table--cell"><p class="op-uc-p">saas-2026.09.25-08h14m21s-release-17.9-2e4c91a</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Fri, 25 Sep 2026 08:03:14 GMT</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><a class="op-uc-link" href="https://github.com/opf/openproject/commit/2e4c91aacdbb6b5ef93e478ac2c614b514d2a457">2e4c91aacdbb</a></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><a class="op-uc-link" href="https://github.com/opf/saas-openproject/commit/af5a1a48edbcbe954db086d8ce57327938705ff2">af5a1a48edbc</a></p></td></tr></tbody></table></figure><figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-table--cell"><p class="op-uc-p">aws-de-trials2.openproject-edge.com</p></td><td class="op-uc-table--cell"><p class="op-uc-p">18.0.0</p></td><td class="op-uc-table--cell"><p class="op-uc-p">saas-2026.09.25-08h06m13s-dev-350961b</p></td><td class="op-uc-table--cell"><p class="op-uc-p">Fri, 25 Sep 2026 07:54:46 GMT</p></td><td class="op-uc-table--cell"><p class="op-uc-p"><a class="op-uc-link" href="https://github.com/opf/openproject/commit/350961bc2e0431feaa93df5c6533077c2754fa54">350961bc2e04</a></p></td><td class="op-uc-table--cell"><p class="op-uc-p"><a class="op-uc-link" href="https://github.com/opf/saas-openproject/commit/1033ee71d84b885a497f41635e01e2f33b3a83c9">1033ee71d84b</a></p></td></tr></tbody></table></figure>

**Browser**

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

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)
