Attachment Validation on Create issue Transition

Hi Team,

Can we validate to add only CSV type file while creating issue in Jira.

Please share your knowledge

Note : I have already tried solution given by Adaptavist Library

Thanks