Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ScriptRunner on Bitbucket v8.9.27

Алеся Сухова
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2025

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events