Hi Team,
Please help me how to limit number of attachments per jira issue using script runner(groovy script)?
Regards,
Venkatesh.
I can't think of a way to do this.
You could write a validator and/or condition that says "do not allow transition if there are too many attachments", but that would not block a user just adding too many attachments when they felt like it.
A validator is the best way to do this. If you need some resources on some snippets, please refer to this.
https://docs.adaptavist.com/sr4js/latest/features/workflows/validators/built-in-validators/validating-attachments-links-in-transitions
It looks like you're new here. Sign in or register to get started.