Versions Compared

Key

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

Abstract

This code snippet copies the Attachments of all the linked issues to the current issue. Since currently copying and setting of attachments is not supported until JMWE-504 is implemented, you can use this snippet to copy the attachments.

...

Info

You can copy the Attachments of all the linked issues to the current issue, other than Parent-Subtask and Epic-Story link types, by not specifying the link type as issue.getLinkedIssues()

...

Placeholder

Description

Example

<Link type name>Name of the link type nameis cloned by

Examples

The output of the code snippet is a collection of Attachments which you could use in a Groovy expression, for example, to copy the Attachments to an issue in the Scripted Groovy post-function:

  • Copy the Attachments of the current issue linked to the newly created issue
  • Copy the Attachments of the issue to a linked issue

References