Feature #21026
closedAllow selecting groups in user format custom fields
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
Related issues
Updated by Hidehisa Matsutani over 7 years ago
+1 I'm very happy once the feature is implemented.
Updated by Yuuki NARA almost 7 years ago
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.
Updated by Lorenzo Meneghetti almost 6 years ago
But the patch file? Where i can find?
Thanks
Lorenzo
Updated by Go MAEDA over 2 years ago
- Related to Patch #5119: "User group" custom field added
Updated by Go MAEDA 10 days ago
- File clipboard-202609141747-i7igr.png clipboard-202609141747-i7igr.png added
- File 0001-Add-an-option-to-allow-groups-in-user-custom-fields-.patch 0001-Add-an-option-to-allow-groups-in-user-custom-fields-.patch 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.
Updated by Go MAEDA 3 days ago
- 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.