new JiraClient(config)
Represents a client for the Jira REST API
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
The information needed to access the Jira API Properties
|
Properties:
Methods
buildAbstractURL(path) → {string}
Simple utility to build a REST endpoint URL for the Jira API without prefixes.
Parameters:
Name | Type | Description |
---|---|---|
path |
The path of the URL without concern for the root of the REST API. |
Returns:
The constructed URL.
- Type
- string
buildAgileURL(path, forcedVersionopt) → {string}
Simple utility to build a REST endpoint URL for the Jira Agile API.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
The path of the URL without concern for the root of the REST API. |
||
forcedVersion |
string | number |
<optional> |
Use this param to force a particular version |
Returns:
The constructed URL.
- Type
- string
buildAuthURL(path, forcedVersionopt) → {string}
Simple utility to build a REST endpoint URL for the Jira Auth API.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
The path of the URL without concern for the root of the REST API. |
||
forcedVersion |
string | number |
<optional> |
Use this param to force a particular version |
Returns:
The constructed URL.
- Type
- string
buildURL(path, forcedVersionopt) → {string}
Simple utility to build a REST endpoint URL for the Jira API.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
The path of the URL without concern for the root of the REST API. |
||
forcedVersion |
string | number |
<optional> |
Use this param to force a particular version |
Returns:
The constructed URL.
- Type
- string
buildWebhookURL(path, forcedVersionopt) → {string}
Simple utility to build a REST endpoint URL for the Jira webhook API.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
path |
The path of the URL without concern for the root of the REST API. |
||
forcedVersion |
string | number |
<optional> |
Use this param to force a particular version |
Returns:
The constructed URL.
- Type
- string
makeRequest(options, callbackopt, successStringopt) → {Promise}
Make a request to the Jira API and call back with it's response.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
The request options. |
||
callback |
callback |
<optional> |
Called with the APIs response. |
successString |
string |
<optional> |
If supplied, this is reported instead of the response body. |
Returns:
Resolved with APIs response or rejected with error
- Type
- Promise