Project

General

Profile

Actions

Feature #15919

closed

Set default category assignee immediately upon category selection

Added by Miodrag Milic almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Currently, the one can see default assignee only after the issue is created. This confuses people and it should be good to set it ASAP using AJAX call.


Files


Related issues

Related to Redmine - Feature #26680: Show default assignee when creating new issueNew

Actions
Related to Redmine - Defect #28951: Cannot clear category field on copying an IssueClosedJean-Philippe Lang

Actions
Related to Redmine - Defect #29695: Duplicated assignee option when selecting a category with default assigneeNew

Actions
Actions #1

Updated by Jean-Philippe Lang almost 11 years ago

  • Tracker changed from Defect to Feature
Actions #2

Updated by Go MAEDA about 7 years ago

  • Related to Feature #26680: Show default assignee when creating new issue added
Actions #3

Updated by Mizuki ISHIKAWA about 7 years ago

I wrote a patch to implement this feature.

Please try to apply this patch: 0001-Set-default_assigned_to_id-in-category.patch

In addition, applying this patch will allow you to set default project assignee in the same way:
0002-Set-default_assigned_to_id-in-project.patch

Actions #4

Updated by Toshi MARUYAMA almost 7 years ago

  • Target version set to 4.1.0
Actions #5

Updated by Go MAEDA over 6 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Priority changed from High to Normal
  • Target version changed from 4.1.0 to 4.0.0
  • Resolution set to Fixed

Committed the patch 0001-Set-default_assigned_to_id-in-category.patch. Thank you for improving Redmine.

I will commit the second patch 0002-Set-default_assigned_to_id-in-project.patch for #26680.

Actions #6

Updated by Marius BĂLTEANU over 6 years ago

  • Status changed from Closed to Reopened

This is a nice feature, indeed, but I think that the current implementation has some issues that we should address/clarify:

1. The default category assignee is not cleared when the category is changed with a category without assignee
- Go to new issue page
- Select a category with assignee
- Observe that the assignee is set correctly
- Change the category with a category without assignee
- Observe that assignee remains the previous one

The expected result from my point of view is to clear the assignee.

2. Manually selected assignee is override by the category assignee.
- Go to new issue page
- Manually select an assignee
- Select a category with assignee
- Observe that the manually selected assignee is replaced by the category assignee

The expected result here (and also the current behaviour until this ticket) is to keep the manually selected assignee.

3. Because there are a lot of scenarios and the code become quite complex, we should cover the cases with system tests.

I can help on fixing this issues and adding some tests, just please let me know.

Actions #7

Updated by Jean-Philippe Lang over 6 years ago

  • Status changed from Reopened to Closed

I made a small change that improves the behaviour when changing/removing the category and solves the 2 issues reported by Marius.

Actions #8

Updated by Go MAEDA over 6 years ago

  • Related to Defect #28951: Cannot clear category field on copying an Issue added
Actions #9

Updated by Marius BĂLTEANU over 6 years ago

I found another issue:

1. Go to a project with a default category assignee
2. Go to new issue page
3. Select the category with the default assignee
4. Open the Assignee dropdown
5. Observe that the default category assignee is duplicated in the dropdown.

The issue is generated by the line source:trunk/app/views/issues/new.js.erb#L6

Actions #10

Updated by Marius BĂLTEANU about 6 years ago

We can deliver this feature as it is and I will try to find a proper implementation for the next minor version of Redmine 4.

Actions #11

Updated by Jean-Philippe Lang about 6 years ago

  • Status changed from Reopened to Closed
  • Resolution set to Fixed
Actions #12

Updated by Marius BĂLTEANU about 6 years ago

  • Related to Defect #29695: Duplicated assignee option when selecting a category with default assignee added
Actions

Also available in: Atom PDF