I try to copy attachment(s) of subtask issue to parent in the workflow transition but I should make a comparison because there is at least one duplicated attachment.
Thanks for your help in advance.
Issue parentIssueObj = issue.getParentObject() List<Attachment> parentIssueAttachments = attachmentManager.getAttachments(parentIssueObj) List<Attachment> attchments = attachmentManager.getAttachments(issue) if(!(parentIssueAttachments.contains(attachment)))
This code doesn't work.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot