I've got an issue collector that uses a single select drop-down.
If a specific value is selected in that drop-down, I want to require an attachment be added.
I've set up a JMWE field required validator with this code on Issue Create:
issue.get("customfield_18800") == "Request Type that requires attachment"
I have added the Attachments field to the list of required fields for that validator.
When I create an issue directly in Jira, the validator runs fine - if no attachment is provided I get a popup error - if an attachment is provided the issue is created.
However, when I try to submit an issue via an Issue Collector with an attachment added, the submit fails with the standard Oops! Something went wrong... message.
Chrome Developer Tools Console output shows this error:
Is there some other way I need to validate an attachment is included in the Issue Collector submitted issue?
Or and I just doing this wrong?