<%@ page import="com.atlassian.core.user.GroupUtils, com.atlassian.jira.ComponentManager" %> <%@ page import="com.atlassian.jira.security.util.GroupSelectorUtils" %> <%@ page import="com.opensymphony.user.Group" %> <%@ page import="java.util.Collection" %> <%@ page import="java.util.Iterator" %> <%@ page import="com.atlassian.jira.config.properties.ApplicationProperties" %> <%@ page import="com.atlassian.jira.config.properties.APKeys" %> <% ApplicationProperties ap = ComponentManager.getInstance().getApplicationProperties(); %> Edit Group Display Names

Edit group display names

<% if (!ap.getOption(APKeys.JIRA_OPTION_USER_EXTERNALMGT)) { %>

Here you can specify a 'display' name for each group.

Once display names have been assigned, you can:

  1. Create a select-list custom field
  2. Configure this custom field, and set its values to the display names for each group>
  3. In the permission scheme, set a Group Selector permission type, set to the custom field added above.

Users will then see a list of 'display' names for groups, which the permission scheme will interpret as specifying the mapped group.

<% Collection groups = GroupUtils.getGroups(); GroupSelectorUtils util = (GroupSelectorUtils) ComponentManager.getInstance().getContainer().getComponentInstanceOfType(GroupSelectorUtils.class); Iterator iter = groups.iterator(); while (iter.hasNext()) { Group group = (Group) iter.next(); String oldVal = util.getGroupDisplayName(group); String newVal = request.getParameter(group.getName()); boolean updated = util.updateGroupName(group, oldVal, newVal); out.println(""); out.println(""); } %>
Group Display name
" + group.getName() + ""); if (updated) { out.println("Updated"); } out.println("
<% } else { %> External user management is enabled. If you would like to be able to specify a 'display' name for each of your groups, disable external user managment. Contact your Administrator. <% } %>