Skip to end of banner
Go to start of banner

getAttachmentPath

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Availability

This routine is available starting with SIL Engine™ 2.5.13 / 2.6.5.

Syntax

getAttachmentPath(issue key, attachment name)

Description

Get the file path for the attachments with name <attachment name> attached to <issue key>.

Parameters

Parameter name

Type

Required

Description

issue key

string

Yes

Issue key.

attachment namestringYesAttachment name.

Return type

string[]

The file paths.

Note that the return type is string[], not string. You will get an array of file paths when you have multiple attachments with the same file name.


Example

string [] filePaths = getAttachmentPath("PROJECT-15", "someFile.txt"); // returns all the file paths for the "someFile.txt" attachments


Notes

  1. If there is no issue with that issue key, an exception will be raised.
  2. The paths returned are ordered by date, starting with most recent attachment added.

See also


  • No labels