attachFile

Syntax

attachFile(path_to_file, issue)

Description

Add an attachment to a selected issue.

Parameters

Parameter name

Type

Required

Description

path to file

string

Yes

Absolute path to the file.

issue key

string

Yes

Key of the issue the file will be attached to.


Return type

boolean (true/false)

The return value represents the success of the attachment process. If the routine returns "true" the file was attached successfully.

Example

Result: Returns "true" if the file is at the selected location and the issue exists. It means the file was attached. Returns "false" if any of the conditions stated before are not met.

Notes

See also