Create a User Group in Jira

Overview

In addition to creating users in Jira, it is often necessary to create groups when multiple users in your instance need the same permissions or restrictions. This snippet allows you to create a new group and can be modified to bulk add users in Jira.

Example

I am a Project Manager and I have been assigned a new project. I need to create a group in Jira with all of the team. I can use this snippet to create a new group, then modify this script to add members of the team automatically.

Requirements

Jira Jira (7.3 - 7.13)

import com.atlassian.jira.component.ComponentAccessor

// the name of the new group
final String groupName = "A new Group"

ComponentAccessor.groupManager.createGroup(groupName)
Discovered an issue? Report it here

Suggested for you

Appears in these Collections