Hi I am trying to add a validator on a screen so that during a transition if they haven't uploaded a specific file it will show an error.
I use the following code in a Script Runner simple script validator but as I understand it the validator runs before the file is uploaded.
attachmentManager.getAttachments(issue).any{it.filename.toLowerCase().trim().startsWith('Form')}That behaviour makes sens however I wondered if you can think of another way to validate an attachment on the screen.
For now I will probably have to ask the user to cancel their screen and transition after uploading the attachment.