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=deleteAttachment+-+434995306
widthauto

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

Syntax

deleteAttachment(issueKey, attachmentName)

Package

Aliasor
deleteAttachment(attachmentId)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Deletes the attachment for a given id or for a specified issue and file name.

...

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

Parameter name

Type

Required

Description

issueKey

String

Yes

Issue key.

attachmentName

String

Yes

Attachment name.

Or

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

Parameter name

Type

Required

Description

attachmentId

Number

Yes

Attachment id.

...

Examples

Example 1

Code Block
languagejs
deleteAttachment(10104);

Example 2

Code Block
languagejs
deleteAttachment("TEST-1", "attachmentToDelete.txt");

...

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

We've encountered an issue exporting this macro. Please try exporting this page again later.