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")
}
Hi @Vishal
Checking attachments on transition is hard and make a lot of problems.
Why you don't try set attachments required on form and put description for attachment field?
Regards,
Seba
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.