Info |
---|
|
This routine is available starting with SIL Engineā¢ 2.5.13 / 2.6.5. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getAttachmentPath(issue key, attachment name) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
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 |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
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 [] filePaths = getAttachmentPath("PROJECT-15", "someFile.txt"); // returns all the file paths for the "someFile.txt" attachments
|
...
Note |
---|
- If there is no issue with that issue key, an exception will be raised.
- The paths returned are ordered by date, starting with most recent attachment added.
|
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "jira_attachment_routine" and space = currentSpace ( ) |
---|
labels | jiraarray_attachment_routineroutines |
---|
|