Class: Universal_avatar

Universal_avatar

new Universal_avatar()

Universal_avatar

Properties:
Name Type Description
connector IConnector

the jira connector instance

Source:

Methods

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

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
type string

type

owningObjectId string

owningObjectId

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>

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

Deletes 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

owningObjectId string

owningObjectId

id string

id

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>

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

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
type string

type

owningObjectId string

owningObjectId

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

owningObjectId string

owningObjectId

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>

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

Parameters:
Name Type Attributes Description
options Object

An object containing options to pass to the Jira API.

Properties
Name Type Description
type string

type

owningObjectId string

owningObjectId

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>