Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getAttachmentIdsuploadAttachment(key)
or
getAttachmentIds(key, partialName, sourceFile)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns the attachment ids

...

Uploads an attachment to an issue

Uploads an attachment to an issue

Parameters

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

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
languagejs
return uploadAttachment("TP-222","C:\Pictures\embarassing_photo_of_uncle_jim.jpg");

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "attachment_functionroutine" and space = currentSpace ( )
labelsarray_functionsroutines