Add default reviewers to pull requests - Groups Not Just Users

Hi 

on each Bitbucket repo we can define default reviewers but Bitbucket let you add just user names,

Is there a way to add a group? 

 

Thanks.

2 answers

1 vote

Hi Lilach,

Thanks for mentioning ScriptRunner for Bitbucket Server Ulrich. You can add default reviewers and mandatory reviewers (both users and groups) on a pull request using the auto add approvers event handler. This can also be based on a particular condition. For example you may only want to add these reviewers if particular files are changed in the pull request or if a particular user created a pull request.

All is explained in that link to our documentation.

Mandatory reviewers are something Bitbucket Server does not provide out of the box but are useful if you want to enforce certain reviewers that can not be removed by the user. For example adding a senior developer as the reviewer.

This can be configured in both the repository settings or in the admin section for multiple repositories/projects.

You can find it under Repository Settings -> Script Event Handlers -> "Auto add approvers" or Admin -> ScriptRunner -> Script Event Handlers -> "Auto add approvers"

Let me know if you have any more questions about the product and how you got on with it.

Hope this helps,
Adam

Hi Lilach,

you may choose to use a Bitbucket (Server) Add-on that does that for you. I know of 2 add-ons that can add normal and mandatory reviewer groups

Let us know if you have any questions or need more help

Cheers Ulrich

[Izymes]

 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,049 views 1 5
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