Hi,
I've installed ScriptRunner and now wish to force attachment (PRD) whenever a new feature is moved to development.
since validators won't perform best I thought the way to perform this is by adding post function that makes the attachment mandatory when moving the item to the 'Requirements' status.
If I understand the way things work this will force from this stage on to add an attachment. So in the next step (moving to development) the Product team will have to attach the file.
Hopefully once the file is there the system will not force another attachment again and again.
The problem is I have no clue for how to write this script in the post functions.
Can someone help or advise a better way to force adding the PRD document before transitioning the issue to the developers?