new MyselfClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/myself'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
changePassword(opts, callbackopt) → {Promise}
Modify caller password.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
||||||||
callback |
<optional> |
Called when the password has been changed. |
- Source:
Returns:
Resolved when the password has been changed.
- Type
- Promise
editMyself(opts, callbackopt) → {Promise}
Modify currently logged user. The "value" fields present will override the existing value. Fields skipped in request will not be changed. Only email and display name can be change that way.
Parameters:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
opts |
The request options send to the Jira API. Properties
|
||||||||
callback |
<optional> |
Called when the user's data has been modified |
- Source:
Returns:
Resolved when the user's data has been modified
- Type
- Promise
getMyself(opts, callbackopt) → {Promise}
Returns currently logged user. This resource cannot be accessed anonymously.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
opts |
Ignored |
||
callback |
<optional> |
Called when the current user is retrieved. |
- Source:
Returns:
Resolved when the current user is retrieved.
- Type
- Promise