Constructor
new AttachmentClient(jiraClient)
Used to access Jira REST endpoints in '/rest/api/2/atachment'
Parameters:
Name | Type | Description |
---|---|---|
jiraClient |
JiraClient |
- Source:
Methods
deleteAttachment(opts, callback)
Remove an attachment from an issue.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The options for the API request. Properties
|
|||||||
callback |
Called when the attachment is deleted. |
- Source:
getAttachment(opts, callback)
Returns the meta-data for an attachment, including the URI of the actual attached file.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
opts |
The options for the API request. Properties
|
|||||||
callback |
Called when the attachment metadata is retrieved. |
- Source:
getGlobalAttachmentMetadata(opts, callback)
Returns the meta informations for an attachments, specifically if they are enabled and the maximum upload size allowed.
Parameters:
Name | Type | Description |
---|---|---|
opts |
This API request actually takes no options; this parameter is ignored. |
|
callback |
Called when the metadata is retrieved. |
- Source: