Constructor
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
buildURL(path) → {string}
Simple utility to build a REST endpoint URL for the Jira API.
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
makeRequest(options, callback, successStringopt)
Make a request to the Jira API and call back with it's response.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
The request options. |
||
callback |
Called with the APIs response. |
||
successString |
string |
<optional> |
If supplied, this is reported instead of the response body. |