Hi,
I have an automation rule that is triggered when issue is created.I want to get the attachment names from the issue in the scriptrunner and based on the name, I want to later transition the issue to a different status.
How do I do this? I tried the below but the size is 0 although there are attachments.
def attachmentManager= ComponentAccessor.getAttachmentManager()
List attachments = attachmentManager.getAttachments(issue)
log.warn( "Attachment List Size "+attachments.size())
Any help is highly appreciated.