Class: Myself

Myself

new Myself()

Myself Currently logged user resource

Properties:
Name Type Description
connector IConnector

the jira connector instance

Source:

Methods

changeMyPassword(options, callbackopt) → {Promise.<any>}

Modify caller password.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
password string

password

currentPassword string

currentPassword

token string

token The token to use for authentication. This token is supplied on a sucessful login. If not supplied, the default token (if set) is used

callback <optional>

if supplied, called with result of api call

Source:
Returns:

result of api call

Type
Promise.<any>

getUser(options, callbackopt) → {Promise.<any>}

Returns currently logged user. This resource cannot be accessed anonymously.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
token string

token The token to use for authentication. This token is supplied on a sucessful login. If not supplied, the default token (if set) is used

callback <optional>

if supplied, called with result of api call

Source:
Returns:

result of api call

Type
Promise.<any>

updateUser(options, callbackopt) → {Promise.<any>}

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. Requires user password.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
key string

key

name string

name

password string

password

emailAddress string

emailAddress

displayName string

displayName

notification string

notification

applicationKeys string

applicationKeys

token string

token The token to use for authentication. This token is supplied on a sucessful login. If not supplied, the default token (if set) is used

callback <optional>

if supplied, called with result of api call

Source:
Returns:

result of api call

Type
Promise.<any>