Project

General

Profile

Actions

Feature #21026

closed

Allow selecting groups in user format custom fields

Added by Dominik Follmann almost 11 years ago. Updated 3 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Custom fields
Target version:
Resolution:
Fixed

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

Related to Redmine - Patch #5119: "User group" custom fieldClosedActions
Actions #1

Updated by Toshi MARUYAMA almost 11 years ago

  • Description updated (diff)
Actions #2

Updated by msneet qukin over 9 years ago

+1

Actions #3

Updated by Mario Puskaric over 9 years ago

+1

Actions #4

Updated by Hidehisa Matsutani over 7 years ago

+1 I'm very happy once the feature is implemented.

Actions #5

Updated by Yuuki NARA over 7 years ago

+1

Actions #6

Updated by 直也 高橋 almost 7 years ago

+1

Actions #7

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.

Actions #8

Updated by Lorenzo Meneghetti almost 6 years ago

But the patch file? Where i can find?
Thanks
Lorenzo

Actions #9

Updated by Go MAEDA over 2 years ago

  • Related to Patch #5119: "User group" custom field added
Actions #10

Updated by Go MAEDA 10 days ago

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.

Actions #11

Updated by Go MAEDA 8 days ago

  • Target version set to Candidate for next major release
Actions #12

Updated by Go MAEDA 6 days ago

  • Target version changed from Candidate for next major release to 7.1.0

Setting the target version to 7.1.0.

Actions #13

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.

Actions

Also available in: Atom PDF