Class: projectCategory

projectCategory

new projectCategory()

The projectCategory class for the Jira Connector

Properties:
Name Type Description
connector IConnector

the jira connector instance

model Model

the model definition

Source:

Methods

deleteById(options, callbackopt) → {Promise.<Object>}

Delete a project category.

Parameters:
Name Type Attributes Description
options Object

The request options passed onto the Jira API.

Properties
Name Type Attributes Description
id string <optional>

The id of the record to delete

token string <optional>

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 empty result

Source:
Returns:

empty result

Type
Promise.<Object>

find(options, callbackopt) → {Promise.<Array>}

Returns all project categories

Parameters:
Name Type Attributes Description
options Object

The request options passed onto the Jira API.

Properties
Name Type Attributes Description
token string <optional>

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 Array of matching records

Source:
Returns:

Array of matching records

Type
Promise.<Array>

findById(options, callbackopt) → {Promise.<Object>}

Returns a projectCategory

Parameters:
Name Type Attributes Description
options Object

The request options passed onto the Jira API.

Properties
Name Type Attributes Description
token string <optional>

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

id string <optional>

The id of the record to find

callback <optional>

if supplied, called with Array of matching records

Source:
Returns:

the selected Project

Type
Promise.<Object>