Hi everyone,
Do you know of an equivalent for checkAttachment = {attachment -> false} in Scriptrunner for Jira Cloud?
I’ve always used this with the “Clone an Issue” post function along with a simple yes/no checkbox to decide whether to copy the attachments or not.
def cfCopyAttachments = ComponentAccessor.customFieldManager.getCustomFieldObject(‘customfield_17302’)
def copy = sourceIssue.getCustomFieldValue(cfCopyAttachments).toString()
if (copy == ‘Yes’) checkAttachment = {attachment -> true}
else checkAttachment = {attachment -> false}
Unfortunately this doesn’t work in Cloud.