The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Can I set a group a as default reviewer for a pull request?

Oliver B. Fischer
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!
October 26, 2016

Each team in our company has multiple repositories and the option to specify a list of default reviewers for each repository is not very handy and causes a lot of work if we get a new team member or if we lose one.

So is it possible to set a group as default reviewer for a pull request?

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

2 votes
adammarkham
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 26, 2016

You can do this with ScriptRunner for Bitbucket Server and easily apply it to multiple repositories out of the box.

Please also see the documentation here on how to add groups as default reviewers, its really simple to achieve what you want. You can also optionally add these reviewers based on a condition, for example changed files in a pull request contains CSS or JavaScript changes:

pathsMatch('regex:.*\\.css$|.*\\.js$')

There is also an option to add mandatory reviewers or groups to a pull request which can not be removed by the user if you want to enforce such reviewers.

Let me know if you need any further details regarding the product.

Hope this helps,
Adam 

 

 

0 votes
Benjamin Amos
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!
September 8, 2020

The current version of Bitbucket does not allow groups to be set as default reviewers, only individual users. Please upvote BSERV-2870 if you would like to see this feature added.

In the meantime, there are work-arounds that use add-ons like ScriptRunner or WorkZone.

0 votes
Ulrich Kuhnhardt [IzymesDev]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 26, 2016

There is also the workzone add-on which lets you add default reviewers and groups by branch or branch-pattern via an intuitive UI. Mandatory reviewers are also supported. 

The repository reviewer configuration can be used to control the pull request merge process as well - if that's part of your workflow.

Let me know if you have any questions...

Cheers Ulrich

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events