import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.AttachmentManager AttachmentManager attachmentManager = ComponentAccessor.getAttachmentManager() def attach = [] if(issue.getLinkedIssues("is cloned by")){ attach = issue.getLinkedIssues("is cloned by").first().get("attachment") } attach.each{ attachmentManager.copyAttachment(it,currentUser,issue.key) }
Our new Appfire Documentation Space is now live!
Take a look here! If you have any questions please email support@appfire.com
Manage space
Manage content
Integrations