Patch #33521

Use issue path instead of bulk update issues path when using the context menu with only one issue selected

Added by Marius BALTEANU about 1 month ago. Updated 21 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Issues
Target version:Candidate for next major release

Description

When changing the attributes of an issue from the context menu, the bulk update issues path is used even if only one issue is selected. Because of this, if the validation fails, the user is redirect to the bulk edit view to fill in the required fields. But if Description is one of those fields, the user won't have available the field because Description is not available in the bulk edit view.

The attach patch changes the behaviour in order to use issue path to update attributes when only one issue is selected. In this case, if the validation fails, the user is redirect to the issue edit page. The route change was necessary in order to allow Patch method for bulk routes as well.

0001-Use-issue_path-when-only-one-issue-is-modified-from-.patch Magnifier (12.6 KB) Marius BALTEANU, 2020-05-28 17:44

History

#2 Updated by Go MAEDA about 1 month ago

Would you tell me the steps to cause a validation error through the context menu? Since the context menu only shows valid options, I could not find a way to cause a validation error.

#3 Updated by Marius BALTEANU 22 days ago

Go MAEDA wrote:

Would you tell me the steps to cause a validation error through the context menu? Since the context menu only shows valid options, I could not find a way to cause a validation error.

Yes, please follow these steps using the default data:
  1. Make "Description" field mandatory for "In progress" status
  2. Find an issue in status "New" without "Description" filled in
  3. Using the context menu, try to change the issue status to in "In progress"
  4. You should receive the validation error and you can observe that the Description field is not available in the page.

#4 Updated by Go MAEDA 21 days ago

Marius BALTEANU wrote:

Go MAEDA wrote:

Would you tell me the steps to cause a validation error through the context menu? Since the context menu only shows valid options, I could not find a way to cause a validation error.

Yes, please follow these steps using the default data:
  1. Make "Description" field mandatory for "In progress" status
  2. Find an issue in status "New" without "Description" filled in
  3. Using the context menu, try to change the issue status to in "In progress"
  4. You should receive the validation error and you can observe that the Description field is not available in the page.

Thank you, confirmed the issue.

Also available in: Atom PDF