saveAttachmentFromEmail

saveAttachmentFromEmail

Syntax

saveAttachment(attachment_id, path_to_file)

Package

 

Alias

 

Pkg Usage

 

Description

Saves the attachment file from an issue (based on the attachment id) to a specific file path, on the server. This can prove to be very helpful when you want to save a file stored on S3, for example

Parameters

Parameter name

Type

Required

Description

Parameter name

Type

Required

Description

attachmentId

string

Yes

The id of the attachment.

filePath

string

Yes

File path where the attachment file is saved

Return Type

Boolean

'True' if the attachment file was successfully saved to the specified file path, 'false' otherwise.

Example

saveAttachment("10600", "/mnt/efs/jira10.0.0-sharedhome/silprograms/test.txt");

See also

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.