/
Ensure that issues have attachments
Ensure that issues have attachments
Use this script as a workflow transition validator to allow transition only if the issue has one or more attachments.
string errorMsg = "At least one file must be attached to the issue.";
if(size(attachments) == 0) {
return false, errorMsg;
}
This script works only to check for the attachments that are already present for the current issue. If you need to check for attachments that are being added in the transition screen, please use !hasInput("attachments") instead of size(attachments) == 0.
, multiple selections available,
Related content
Linked Issues Status Condition
Linked Issues Status Condition
More like this
Copy or Move Attachments post function
Copy or Move Attachments post function
More like this
Copying Attachments from Transition Screen to Sub-Task using the Post Function 'Sequence of Post Functions'
Copying Attachments from Transition Screen to Sub-Task using the Post Function 'Sequence of Post Functions'
More like this
getAttachmentPath
getAttachmentPath
Read with this
Transition issue(s)
Transition issue(s)
More like this
Validator Templates
Validator Templates
Read with this