Constructor
new UserClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/user'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
changePassword(opts, callback)
Modify user password.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
|||||||||||||
callback |
Called when the password has been set. |
- Source:
convertTemporaryAvatar(opts, callback)
Converts temporary avatar into a real avatar
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the avatar has been converted |
- Source:
createTemporaryAvatar(opts, callback)
Creates temporary avatar. Creating a temporary avatar is part of a 3-step process in uploading a new avatar for a user: upload, crop, confirm.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the temporary avatar has been uploaded. |
- Source:
createUser(opts, callback)
Create user. By default created user will not be notified with email. If password field is not set then password will be randomly generated.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||
callback |
Called when the user has been created. |
- Source:
deleteAvatar(opts, callback)
Deletes avatar
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the avatar has been deleted. |
- Source:
deleteUser(opts, callback)
Removes user.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
||||||||||
callback |
Called when the user has been deleted. |
- Source:
editUser(opts, callback)
Modify user. The "value" fields present will override the existing value. Fields skipped in request will not be changed.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
|||||||||||||
callback |
Called when the user has been edited. |
- Source:
getAvatars(opts, callback)
Returns all avatars which are visible for the currently logged in user.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||
callback |
Called when the avatars have been retrieved. |
- Source:
getDefaultColumns(opts, callback)
Returns the default columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||
callback |
Called when the columns have been retrieved. |
- Source:
getUser(opts, callback)
Get a user. This resource cannot be accessed anonymously.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API Properties
|
||||||||||
callback |
Called when the user has been retrieved. |
- Source:
multiProjectSearchAssignable(opts, callback)
Returns a list of users that match the search string and can be assigned issues for all the given projects. This resource cannot be accessed anonymously.
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||||||||||||
callback |
Called when the search results have been retrieved. |
- Source:
resetDefaultColumns(opts, callback)
Reset the default columns for the given user to the system default. Admin permission will be required to get columns for a user other than the currently logged in user.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||
callback |
Called when the columns have been reset. |
- Source:
search(opts, callback)
Returns a list of users that match the search string. This resource cannot be accessed anonymously.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||||||||||||||||||||||||||
callback |
Called when the search results are retrieved. |
- Source:
searchAssignable(opts, callback)
Returns a list of users that match the search string. This resource cannot be accessed anonymously. Please note that this resource should be called with an issue key when a list of assignable users is retrieved for editing. For create only a project key should be supplied. The list of assignable users may be incorrect if it's called with the project key for editing.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
||||||||||||||||||||||||||||
callback |
Called when the search results have been retrieved. |
- Source:
searchPermissions(opts, callback)
Returns a list of active users that match the search string and have all specified permissions for the project or issue.
This resource can be accessed by users with ADMINISTER_PROJECT permission for the project or global ADMIN or SYSADMIN rights.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the jira API Properties
|
||||||||||||||||||||||||||||
callback |
Called when the search results are retrieved. |
- Source:
searchPicker(opts, callback)
Returns a list of users matching query with highlighting. This resource cannot be accessed anonymously.
Parameters:
Name | Type | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||||||||||||||||||||
callback |
Called when the search results are retrieved. |
- Source:
setDefaultColumns(opts, callback)
Sets the default columns for the given user. Admin permission will be required to get columns for a user other than the currently logged in user.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API Properties
|
|||||||||
callback |
Called when the columns have been set. |
- Source:
viewIssueSearch(opts, callback)
Returns a list of active users that match the search string. This resource cannot be accessed anonymously. Given an issue key this resource will provide a list of users that match the search string and have the browse issue permission for the issue provided.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | The request options sent to the Jira API. Properties
|
||||||||||||||||||||||||||||||
callback |
- Source: