DownloadAttachment
Downloads an attachment from Jira by specifying the attachment's unique ID.
Input
| Name | Type | Required | Accepts Output Streams | Description |
| AttachmentId | String | True | False | The unique identifier of the Jira attachment to download. This ID is required to retrieve the correct file. |
| FileLocation | String | False | False | The local file system path where the downloaded attachment should be saved. This can be an absolute or relative path. |
| FileName | String | False | False | The name to assign to the downloaded file. If left blank, the file will retain its original name as it appears in Jira. |
| Overwrite | String | False | False | If set to 'true', any existing file at the target location will be overwritten. If 'false', the operation will fail if the file already exists. Default is 'false'. |
| FileStream | String | False | True | An optional output stream to which the attachment will be written. Only used when FileLocation is not specified. |
Result Set Columns
| Name | Type | Description |
| Success | String | Indicates whether the attachment was successfully downloaded. Returns 'true' if successful, or 'false' if an error occurred. |
| FileData | String | The contents of the downloaded file encoded in Base64 format. Only returned when FileLocation and FileStream are not provided. |