How to Limit number of attachments per jira issue using script runner(groovy script)?

Pokala Venkatesh November 20, 2018

Hi Team,

   Please help me how to limit number of attachments per jira issue using script runner(groovy script)?

Regards,

Venkatesh.

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 20, 2018

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.

Tom Tran December 1, 2021

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

Suggest an answer

Log in or Sign up to answer