Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engineā„¢ 2.5.13 / 2.6.5.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getAttachmentPath(issue key, attachment name)

Package

Alias

Pkg Usage

Description

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

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

issue key

...

String

Yes

Issue key.

attachment name

...

String

Yes

Attachment name.

Return

...

Type

stringString []

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

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

...

Note

  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

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "jira_attachment_routine" and space = currentSpace ( )
labelsjiraarray_attachment_routineroutines