Class: Avatar

Avatar

new Avatar()

Avatar

Properties:
Name Type Description
connector IConnector

the jira connector instance

Source:

Methods

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

Updates the cropping instructions of the temporary avatar.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
type string

type

cropperWidth string

cropperWidth

cropperOffsetX string

cropperOffsetX

cropperOffsetY string

cropperOffsetY

url string

url

needsCropping string

needsCropping

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>

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

Returns all system avatars of the given type.

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
type string

type

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>

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

Creates temporary avatarname of file being uploadedsize of file

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
type string

type

filename string

filename name of file being uploaded

size string

size size of file

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>