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 | getAttachmentIdsuploadAttachment(key) or getAttachmentIds(key, partialName, sourceFile) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the attachment ids |
...
Uploads an attachment to an issue |
Uploads an attachment to an issue
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
key | string | Yes | Issue key. | partialNamesourceFile | string | Yes | Partial name to filter withPath to the file. | |
Return Type
int []
Returns an array of attachment idsboolean
Returns "true" if the attachment was uploaded successfully and "false" otherwise. If returned "false" check the log for a detailed reason on why it failed.
Example
Code Block |
---|
|
return uploadAttachment("TP-222","C:\Pictures\embarassing_photo_of_uncle_jim.jpg"); |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "attachment_functionroutine" and space = currentSpace ( ) |
---|
labels | array_functionsroutines |
---|
|