Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,962
Community Members
 
Community Events
168
Community Groups

Jira Workflow with JMWE field required condition with issue collector - attachment test failing

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:


icafail.png


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?

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS

Atlassian Community Events