Content
View differences
Updated by Ivan Kuchin 7 months ago
### Steps to reproduce
* Minimal version:
1. Create a project attribute of type calculated value with static formula `1 + 1` and marked **Required for all projects**
* With dependencies:
1. Create a project attribute of type int or float
2. Create a calculated value with formula using just created int or float attribute
3. Create a calculated value with formula using just created calculated value attribute and marked **Required for all projects**
* Open form to create a new project
### What is the buggy behaviour?
* The calculated value with static formula is not calculated even after pressing Create and getting an error
* The calculated value with formula using another calculated value is blank and neither used calculated value, nor attributes used by it are shown
### What is the expected behaviour?
1. Either:
1. Calculated value attributes should not be required during creation of the project (<mention class="mention" data-id="67839" data-type="work_package" data-text="#67839">#67839</mention>)
2. All required calculated values should be calculated before displaying the the new project form for static formulas or ones depending only on required attributes
2. Or:
1. All required calculated values should be calculated before displaying the the new project form
2. All dependencies (recursively) of required calculated value attributes should be shown in the form
3. All required calculated values should be calculated on submission or after every change of static attributes
* Minimal version:
1. Create a project attribute of type calculated value with static formula `1 + 1` and marked **Required for all projects**
* With dependencies:
1. Create a project attribute of type int or float
2. Create a calculated value with formula using just created int or float attribute
3. Create a calculated value with formula using just created calculated value attribute and marked **Required for all projects**
* Open form to create a new project
### What is the buggy behaviour?
* The calculated value with static formula is not calculated even after pressing Create and getting an error
* The calculated value with formula using another calculated value is blank and neither used calculated value, nor attributes used by it are shown
### What is the expected behaviour?
1. Either:
1. Calculated value attributes should not be required during creation of the project (<mention class="mention" data-id="67839" data-type="work_package" data-text="#67839">#67839</mention>)
2. All required calculated values should be calculated before displaying the the new project form for static formulas or ones depending only on required attributes
2. Or:
1. All required calculated values should be calculated before displaying the the new project form
2. All dependencies (recursively) of required calculated value attributes should be shown in the form
3. All required calculated values should be calculated on submission or after every change of static attributes