new GroupClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/group'
These are considered experimental according to the Jira Docs, use at your own risk.
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
addUserToGroup(opts, callbackopt) → {Promise}
Adds given user to a group. Returns the current state of the group.
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||
callback |
<optional> |
Called when the user has been added to the group. |
- Source:
Returns:
Resolved when the user has been added to the group.
- Type
- Promise
createGroup(opts, callbackopt) → {Promise}
Creates a group by given group parameter Returns REST representation for the requested group.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to jira Properties
|
||||||||
callback |
<optional> |
Called when the group is created |
- Source:
Returns:
Resolved when the group is created
- Type
- Promise
deleteGroup(opts, callbackopt) → {Promise}
Deletes a group by given group parameter. Returns no content
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||||||
callback |
<optional> |
Called when the group has been deleted. |
- Source:
Returns:
Resolved when the group has been deleted.
- Type
- Promise
getGroup(opts, callbackopt) → {Promise}
Returns REST representation for the requested group. Allows to get list of active users belonging to the specified group and its subgroups if "users" expand option is provided. You can page through users list by using indexes in expand param. For example to get users from index 10 to index 15 use "users[10:15]" expand value. This will return 6 users (if there are at least 16 users in this group). Indexes are 0-based and inclusive. DEPRECATED. This resource is deprecated, please use group/member API instead. (15-Feb-2018)
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
|||||||||||
callback |
<optional> |
Called when the group is retrieved. |
- Source:
Returns:
Resolved when the group is retrieved.
- Type
- Promise
getMembers(opts, callbackopt) → {Promise}
This resource returns a paginated list of users who are members of the specified group and its subgroups. Users in the page are ordered by user names. User of this resource is required to have sysadmin or admin permissions.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||||||||
callback |
<optional> |
Called when the group is retrieved. |
- Source:
Returns:
Resolved when the group is retrieved.
- Type
- Promise
removeUserFromGroup(opts, callbackopt) → {Promise}
Removes given user from a group. Returns no content
Parameters:
Name | Type | Attributes | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||
callback |
<optional> |
Called when the user has been added to the group. |
- Source:
Returns:
Resolved when the user has been added to the group.
- Type
- Promise