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 Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

249 views 0 12
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