Hello,
my company is using Bitbucket Server v6.10.5 with ScriptRunner for Bitbucket v6.6.0.
I would like to create a "Conditional merge check" based on the accepted answer from this post:
https://community.atlassian.com/t5/Answers-Developer-Questions/Validate-PullRequest/qaq-p/536378
My goal is simply to check whether the source branch of an open pull request has maybe already fallen behind the target branch and if so, disable the merge button with a custom veto message.
When I use the code provided in the answer from the link above, I always get the error message: "unable to resolve class com.onresolve.scriptrunner.canned.bitbucket.pullrequests.PullRequestPolicies".

Is anyone able to explain that error and/or how the solution needs to be adjusted so that it works for me?
Thanks a lot in advance
Sascha