Constructor
new MyselfClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/myself'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
changePassword(opts, callback)
Modify caller password.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options sent to the Jira API. Properties
|
|||||||
callback |
Called when the password has been changed. |
- Source:
editMyself(opts, callback)
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 | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The request options send to the Jira API. Properties
|
|||||||
callback |
Called when the user's data has been modified |
- Source:
getMyself(opts, callback)
Returns currently logged user. This resource cannot be accessed anonymously.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Ignored |
|
callback |
Called when the current user is retrieved. |
- Source: