I am trying to move all the issues with Done status to Close status when a sprint is closed.
I have custom listener to perform the operation but the script didn't work.

I am not sure what's wrong with the script.
Any help on this would be greatly appreciated.
Thanks!