Content
View differences
Updated by Michael Abrahamsson about 5 years ago
### **Environment**:
Your OpenProject Version: 11.2.2
Windows, Chrome, English
### **Logs**
No errors in logs. CostReportsController called correctly and status=200.
### **Steps to reproduce:**
1. Go to Administration -> Custom fields and create a custom field called Customer (Format: List) and populate with a number of items. Custom field should have "Used as a filter" and "Searchable" checked.
2. Go to Administration -> Work package types -> Task -> Form configuration and drag custom field Customer to group element "PEOPLE" and Save.
3. Go to any project and activate custom field in Project settings -> Custom fields
4. Create a task in the project and assign a Customer (custom field) then Log Time in the same task.
5. Repeat step 4 a couple of times so that each Customer has a couple of spent time entries.
6. Go to Time and costs in the project and use the above mentioned customer field Customer in the Group by function.
7. The report will come back with tasks associated with wrong Customer in what seems to be a random order. If a filter is applied selecting only a specific Customer it will be quite obvious that report is flawed. The Customer field is also presented suffixed with "not found" in some instances which seems to be those that actually are the correct ones.
### **Actual Behavior**
When using the Group by function the report will not contain the correct tasks group by a custom field. In some cases the correct tasks are returned but strangely then the report field headings says "_<custom field content> not found_". The report further seems to contain tasks that have completely different values of the custom field.
Filtering by using the custom field works as intended, see example below where it get obvious that the group by functions returns incorrect custom field value for the headings.
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20933/content"></div></figure>
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20932/content"></div></figure>
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20931/content"></div></figure>
### **Expected Behavior**
Only tasks sharing the same custom field should be grouped together.
Your OpenProject Version: 11.2.2
Windows, Chrome, English
### **Logs**
No errors in logs. CostReportsController called correctly and status=200.
### **Steps to reproduce:**
1. Go to Administration -> Custom fields and create a custom field called Customer (Format: List) and populate with a number of items. Custom field should have "Used as a filter" and "Searchable" checked.
2. Go to Administration -> Work package types -> Task -> Form configuration and drag custom field Customer to group element "PEOPLE" and Save.
3. Go to any project and activate custom field in Project settings -> Custom fields
4. Create a task in the project and assign a Customer (custom field) then Log Time in the same task.
5. Repeat step 4 a couple of times so that each Customer has a couple of spent time entries.
6. Go to Time and costs in the project and use the above mentioned customer field Customer in the Group by function.
7. The report will come back with tasks associated with wrong Customer in what seems to be a random order. If a filter is applied selecting only a specific Customer it will be quite obvious that report is flawed. The Customer field is also presented suffixed with "not found" in some instances which seems to be those that actually are the correct ones.
### **Actual Behavior**
When using the Group by function the report will not contain the correct tasks group by a custom field. In some cases the correct tasks are returned but strangely then the report field headings says "_<custom field content> not found_". The report further seems to contain tasks that have completely different values of the custom field.
Filtering by using the custom field works as intended, see example below where it get obvious that the group by functions returns incorrect custom field value for the headings.
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20933/content"></div></figure>
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20932/content"></div></figure>
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20931/content"></div></figure>
### **Expected Behavior**
Only tasks sharing the same custom field should be grouped together.