ScriptRunner for Bitbucket Server/Stash: Auto add reviewers to pull requests unstable behavior

I am trying to use Script Event Handler.
Event I am using is : Auto add reviewers to pull requests.
I created couple of rule/conditions on using ExamplesChanged files in sensitive directory (pathsMatch('glob:test/src/**')) and added a Mandatory user in each conditions.

Now, whenever a new PR is created, it adds those mandatory reviewers based on the sensitive directoy path condition, But in addition to this, it also adds a dafault user in the PR, if the PR is been rebased.

This is the pattern I am seeing.
Need help, why it is trying to add the "default user", although in my conditions I nowhere describe any rules/conditions to add default users.

Please let us know.


1 answer

Hi Saif,

Do you still need an answer on this one? If so, please could you let us know the code/configuration you are using? (some screenshots/a gist would be useful). Also, can you let us know the versions of Scriptrunner for Bitbucket Server and Bickbucket Server you are using?

Thanks, Thomas

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

422 views 5 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you