não há nenhum meio de restringir o tipo de anexo.
Então, tenho algumas request que os usuários consegue anexar arquivos com extensão .exe e eu não queria que ele anexassem este tipo de arquivos, apenas arquivos .doc e .pdf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Boa tarde consegui fazer com o scriptrunning
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.jira.issue.attachment.Attachmentdef attachmentManager = ComponentAccessor.getAttachmentManager()//Efetuar uma buscar de acordo com as extensões deleta o arquivo anexadodef attachments = attachmentManager.getAttachments(issue).findAll {it.filename.endsWith('.exe') ||it.filename.endsWith('.bat') || it.filename.endsWith('.msi') } as Listattachments.each { attachmentManager.deleteAttachment(it)}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.