Hi Guys,
Is it possible to make attachment mandatory in jira service management portal ? I have tried couple of things but they are not working. Could you please suggest ? I am trying to achieve it using scriptrunner but so far unsuccessful. I want to set specific message & that is what the problem is.
I am using a code
import com.atlassian.jira.issue.Issue;
import com.atlassian.jira.component.ComponentAccessor;
import com.atlassian.jira.issue.AttachmentManager;
def attachments = issue.getAttachments();
def Summary = getFieldById("summary")
if(!attachments){
Summary.setError("You must add an attachment xxxxxx")
}