Feature #21026
closed
Allow selecting groups in user format custom fields
Added by Dominik Follmann almost 11 years ago.
Updated 3 days ago.
Description
A custom field of type "User" allows only selection of users, not of user groups.
It would be a useful feature, if we could configure a custom field of type "User" in a way that it allows both, user and user group selection, exactly like the "Assignee" field does.
Most likely this should be an option for the custom field.
Maybe the implementation wouldn't be that much, because the "Assignee" field already has this feature (?).

Files
- Description updated (diff)
+1 I'm very happy once the feature is implemented.
After applying this patch, groups can also be selected in the user format custom field.
https://redmine.tokyo/issues/911#note-3
Sorry written in Japanese.
But I think the code part will be helpful.
But the patch file? Where i can find?
Thanks
Lorenzo
- Related to Patch #5119: "User group" custom field added
Here is a patch that extends user format custom fields so that groups can be selected as well as users.
A new "Possible values" option is added to user format custom fields:
| Possible values |
Listed in the drop-down |
| Users |
Users who are members of the project (default) |
| Users and groups |
Users and groups that are members of the project |
| Groups |
Groups that are members of the project |

Existing custom fields keep working as before. The "Role" option also applies to groups. In issue filters, "<< me >>" also matches the groups the current user belongs to, as in the Assignee filter.
Values that are already saved are kept when the option is changed. For example, if a group was selected and the option is then changed to "Users", the issue still shows that group and can be updated without errors, but the group can no longer be selected for other issues. This is the same as what happens to the Assignee field when "Allow issue assignment to groups" is disabled.
- Target version set to Candidate for next major release
- Target version changed from Candidate for next major release to 7.1.0
Setting the target version to 7.1.0.
- Subject changed from Select user-groups in custom fields of type "User" to Allow selecting groups in user format custom fields
- Status changed from New to Closed
- Assignee set to Go MAEDA
- Resolution set to Fixed
Committed the patch in r25122.
User format custom fields now have a "Possible values" option that lets administrators choose which project members can be selected:
| Possible values |
Selectable values |
| Users (default) |
Users who are members of the project |
| Users and groups |
Users and groups that are members of the project |
| Groups |
Groups that are members of the project |
The default is "Users", so the behavior of existing custom fields does not change.
Also available in: Atom
PDF