Versions Compared

Key

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

...

...

...

...

...

...


Note

This document is obsolete. JMWE now supports copying of attachments across issues in the post-functions. 

Abstract

This code snippet copies Attachments to the current issue from issues linked to it with a specific link type. 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

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

Placeholders

Placeholder

Description

Example

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

Examples

The outcome of the code snippet is the copy of Attachments to an issue in the Scripted Groovy post-function:

  • Copy the Attachments of the current issue to its newly created linked issue created using the Create issue post-function
  • Copy the Attachments of the issue to a linked issue

References