Hi,
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.