Hi! I want to add a script from the examples to my project to add random reviewers to pull requests. But when I try to add it to "Dynamically add reviewers to a pull request", I get a lot of errors like this
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during semantic analysis: Expression [CastExpression] is not allowed: [] as java.util.Set java.lang.SecurityException: Expression [CastExpression] is not allowed: [] as java.util.Set
As far as I understand, my version of Bitbucket does not support complex scripts. Is there any way to fix this? Will adapting the script help?
Script https://www.scriptrunnerhq.com/help/example-scripts/add-random-reviewers-to-pull-request-from-group-onPrem