Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
1.010.000
-
1.011.000 / 1.010.001 Sprint 2, 1.011.000 Sprint 3
Description
Short Description: The filter settings of the Reports cannot be edit again when the default project or a saved filter having the default project, displayed in the filter settings, are deleted. When the project displayed in the filter settings is not the default project and the user deletes it, the user can still see the filter settings and change them, seeing an error message under each field that should display values related to the project that was deleted.
Steps to Reproduce:
1 - Create a new Jira instance and install Xray in it.
2 - Create two project and configure its Xray settings.
3 - Create some issues in order to see results in the reports.
4 - Navigate to the reports and verify that by default, there is a project already in the filter. That is the default project.
5 - Now, go to the Jira JQL filter and create two filters: one that includes the default project and another that does not include the default project.
6 - Navigate to the Reports pages: in one report, let the default project be configured; in another report, configure another project; in another report, configure the saved filter that includes the default project; in another report, configure the saved filter that does not have the default project in it.
7 - Now, go to View All Filters and delete the Saved Filter that does not include the default project.
8 - Go to the Report that has that filter setting.
Actual Results: The user can still see the report and the filter settings. When opening it, the saved filter is empty without any error message in it.
Expected Results: An error message should be displayed under the saved filter stating that it is invalid.
9 - Now, go to the project settings of the project that it is not the default one and delete it.
10 - Navigate to the Report that has that project configured in it.
Actual Results: The user can still see the report and the filter settings. When opening the filters dialog, the project
field is empty and the fields that should display values related to the project present an error message stating that they can not be initialized.
Expected Results: The project field should also display a error message stating that it is invalid.
11 - Now, go to the project settings of the project that it is the default one and delete it.
12 - Navigate to the Report that has the default project configurated in it.
Actual Results: An error message is displayed stating that there was an error generating the report and the user can not change those settings anymore.
Expected Results: The filter dialog should still be displayed and when opening the filter a message should be displayed under the project filter stating that the project does exist.
13 - Now, go to view all filters and delete the one with the default project.
14 - Navigate to the Report that has the saved filter with the default project configurated in it.
Actual Results: An error message is displayed stating that there was an error generating the report and the user can not change those settings anymore.
Expected Results: The filter dialog should still be displayed and when opening the filter, a message should be displayed under the saved filter stating that it does exist.