def add_group(self, groupname):
        """Create a new group in JIRA.

        :param groupname: The name of the group you wish to create.
        :type groupname: str
        :return: Boolean - True if successful.
        :rtype: bool
        """
        url = self._options['server'] + '/rest/api/latest/group'

        # implementation based on
        # https://docs.atlassian.com/jira/REST/ondemand/#d2e5173

        x = OrderedDict()

        x['name'] = groupname

        payload = json.dumps(x)

        self._session.post(url, data=payload)

        return True
def add_group ( self , groupname ) : url = self . _options [ 'server' ] + '/rest/api/latest/group' x = OrderedDict ( ) x [ 'name' ] = groupname payload = json . dumps ( x ) self . _session . post ( url , data = payload ) return True
Create a new group in JIRA.

        :param groupname: The name of the group you wish to create.
        :type groupname: str
        :return: Boolean - True if successful.
        :rtype: bool