Content
View differences
Updated by Jens Ulferts 12 months ago
### Steps to reproduce
1. Create an admin-only project attribute that is required for all projects
1. Login as a user with admin permissions
2. Go to Administration > Projects > Project attributes
3. Click on "+ Add" and select "Project attribute"
4. Fill in the Name and Section fields.
5. Select Text (the default) as Format.
6. Check "Required for all projects"
7. Check "Admin-only"
8. Do not fill in or check any other fields.
9. Click "Save"
2. Login (in a separate, private window pr desktop) as a user with the global project create permission.
3. Click the green + button in the top-left.
4. Fill in Name and all other required fields (denoted by an asterisk)
5. Click "Save"
<br>
The project will not be saved, and the user will be shown a validation error (via flash message) indicating that the admin-only project attribute can't be blank.
### What is the buggy behavior?
1. \_EITHER _EITHER (tbc) u\_sers u_sers should not be able to create admin-only project attributes that are required for all projects.
2. _OR_ the project is not saved and the user is shown the validation error.
### What is the expected behavior?
1. _EITHER (tbc)_ "Required for all projects" and "Admin-only" should be mutually exclusive options on the Project attribute creation form.
2. _OR_ validations for admin-only Project atributes should be skipped on Project creation.
### Out of scope
Migrate existing "admin only" & "Required for all projects".
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/644338/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/644314/content">
### 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**
* Hosted cloud edition
**OpenProject version**
**Core build**
[4e98f0c7dbe601a99e9440e7a08edc2cdaa5d0d7](https://github.com/opf/openproject/commits/4e98f0c7dbe601a99e9440e7a08edc2cdaa5d0d7)
**Product version**
[c778ff30a6cda2a75c540d3e3e20425f047f4bc6](https://github.com/opf/saas-openproject/commits/c778ff30a6cda2a75c540d3e3e20425f047f4bc6)
**Core version**
OpenProject 16.1.0
**Browser**
* [x] 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)
**Language**
_en\_GB_
1. Create an admin-only project attribute that is required for all projects
1. Login as a user with admin permissions
2. Go to Administration > Projects > Project attributes
3. Click on "+ Add" and select "Project attribute"
4. Fill in the Name and Section fields.
5. Select Text (the default) as Format.
6. Check "Required for all projects"
7. Check "Admin-only"
8. Do not fill in or check any other fields.
9. Click "Save"
2. Login (in a separate, private window pr desktop) as a user with the global project create permission.
3. Click the green + button in the top-left.
4. Fill in Name and all other required fields (denoted by an asterisk)
5. Click "Save"
<br>
The project will not be saved, and the user will be shown a validation error (via flash message) indicating that the admin-only project attribute can't be blank.
### What is the buggy behavior?
1. \_EITHER
2. _OR_ the project is not saved and the user is shown the validation error.
### What is the expected behavior?
1.
2. _OR_ validations for admin-only Project atributes should be skipped on Project creation.
### Out of scope
Migrate existing "admin only" & "Required for all projects".
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/644338/content"><img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/644314/content">
### 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**
* Hosted cloud edition
**OpenProject version**
**Core build**
[4e98f0c7dbe601a99e9440e7a08edc2cdaa5d0d7](https://github.com/opf/openproject/commits/4e98f0c7dbe601a99e9440e7a08edc2cdaa5d0d7)
**Product version**
[c778ff30a6cda2a75c540d3e3e20425f047f4bc6](https://github.com/opf/saas-openproject/commits/c778ff30a6cda2a75c540d3e3e20425f047f4bc6)
**Core version**
OpenProject 16.1.0
**Browser**
* [x] 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)
**Language**
_en\_GB_