default branch permissions

This question is in reference to Atlassian Documentation: Using branch permissions

Is there a way to set "default branch permissions" for new repositories/projects? I want to have similar rules in each repo, I dont want to have to continuously set them every time I make a new repo

2 answers

1 accepted

Hi Steven,

It's not possible to set a default configuration for new repositories, thus currently they have to be configured individually. I found a few feature requests about setting default settings for new repositories in a project, which you may find interesting. Please feel free to vote and add any comments to it, as well as adding yourself as a watcher so you can track its progress directly. You may refer to Atlassian's policy for the implementation of new features:

Please allow me to present you, alternatively, to the add-on Repository Templates for Bitbucket, developed by another vendor, which allows you to set some default settings for new repositories.

Regards,

Gustavo Refosco

Steven,

We have developed a paid solution that does exactly what you're asking for and it's available on the Atlassian Marketplace - ScriptRunner for Bitbucket Server.

The specific functionality you are looking is covered in our documentation in two places:

  1. A script that can update permissions across your existing set of projects and/or repositories
  2. An event handler that sets default permissions as you wish across all future projects and/or repositories

I hope you find it useful enough to buy it. If not, perhaps you could let us know of any gaps in functionality.

Thanks. 

 

Thank you for this. Unfortunately my bitbucket's server is run by my company and unfortunately they aren't interested in spending money on a solution for this.

thanks though!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,876 views 26 12
Join discussion

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