Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=getAttachmentMediaId+-+1554352025
widthauto

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

getAttachmentMediaId(key, attachmentId)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Returns the mediaId

Returns the media ID that can be used in ADF, for the specified issue and attachmentId

Parameters

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

Parameter name

Type

Required

Description

key

string

Yes

Issue key.

attachmentId

integer

Yes

The id of the attachment.

Return Type

string

Returns the media id for the provided parameters.

Example

Code Block
languagejs
string mediaId = getAttachmentMediaId("TEST-23", 10230);
return mediaId;

See also

Filter by label
showLabelsfalse
max25
showSpacefalse
cqllabel = "attachment_routine" and space = currentSpace ( )
labelsarray_routines