Project

General

Profile

Actions

Feature #21026

closed

Allow selecting groups in user format custom fields

Feature #21026: Allow selecting groups in user format custom fields

Added by Dominik Follmann about 11 years ago. Updated 2 months 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 1 (0 open — 1 closed)

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

Updated by Toshi MARUYAMA about 11 years ago Actions #1

  • Description updated (diff)

Updated by msneet qukin almost 10 years ago Actions #2

+1

Updated by Mario Puskaric over 9 years ago Actions #3

+1

Updated by Hidehisa Matsutani over 7 years ago Actions #4

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

Updated by Yuuki NARA over 7 years ago Actions #5

+1

Updated by 直也 高橋 about 7 years ago Actions #6

+1

Updated by Yuuki NARA about 7 years ago Actions #7

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 Actions #8

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

Updated by Go MAEDA almost 3 years ago Actions #9

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

Updated by Go MAEDA 2 months ago Actions #10

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 2 months ago Actions #11

  • Target version set to Candidate for next major release

Updated by Go MAEDA 2 months ago Actions #12

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

Setting the target version to 7.1.0.

Updated by Go MAEDA 2 months ago Actions #13

  • 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: PDF Atom