Today let us learn how to use Scripted condition on Jira Cloud.
Check whether the issue has an attachment of type pdf.
issue.attachments.filter(attachment => attachment.mimeType == 'application/pdf').length > 0
Check whether the issue has comments.
issue.comments
.length > 0
Learn about Jira expressions hereand take a look at some example conditions here.