Need a jira expression to add a custom validator (using JMWE) app to validate that wether the given attachment by user is exe if it is exe then the user should not be able to create an issue, and if the attachment is any other type except exe then, the user should be able to create a issue, and user should also be able to create the issue if there is no attachment attached, how to write jira expression for this scenario
you can create a Build-your-own Validator with this Jira expression:
!issue.attachments.length || !issue.attachments.some(it => it.filename.match("^(?i).*\.exe$"))
However, I haven't tested it when create a JSM Request from the customer portal, some validators just don't work in that specific case because of JSM limitations.
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event