Hello everyone! I'm trying to copy an attachment from a screen ,
Who is associate to the closure of a subtask .
I succeeded to do it with comment :
def commentManager = ComponentAccessor.getCommentManager()
def user = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
def originalComment = transientVars.comment as String
def comments = originalComment
if (comments!=null)
{
commentManager.create(parentIssue, user, comments, false)
}
I'm trying to do an equivalent with the attachement (
copyAttachments(Issue issue, ApplicationUser author, String newIssueKey)<br>) but
transientVars.attachment
Does not seem to exist
How am I supposed to do ?