Constructor
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, callback)
Adds given user to a group. Returns the current state of the group.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the user has been added to the group. |
- Source:
createGroup(opts, callback)
Creates a group by given group parameter Returns REST representation for the requested group.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to jira Properties
|
|||||||
callback |
Called when the group is created |
- Source:
deleteGroup(opts, callback)
Deletes a group by given group parameter. Returns no content
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||||
callback |
Called when the group has been deleted. |
- Source:
getGroup(opts, callback)
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.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
||||||||||
callback |
Called when the group is retrieved. |
- Source:
removeUserFromGroup(opts, callback)
Removes given user from a group. Returns no content
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the user has been added to the group. |
- Source: