It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Change setting for automatically unapproving a PR when source branch changes through API? Edited

I have a script that automatically creates repositories with pre-determined settings, and one of the settings that I want to set is the one for this plugin.

 

When GETting the repo configuration through the BitBucket Server API

http://localhost:7990/rest/api/1.0/projects/testproj/repos/testrepo/settings/pull-requests

I clearly see the "unapproveOnUpdate": true option turned on for the Unapprove automatically on new changes setting, but I cannot find an equivalent for the Unapprove all reviewers when the source branch of a pull request changes.

 

Here is a picture of what I want to achieve:

Screen Shot 2017-07-12 at 17.59.00.png

The highlighted one is the one for which I cannot find a property in the JSON object.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in United States

Welcome new members!

Wow, I got swamped and now that I've finally gotten my head back above water, I find we have several new members! Welcome @Darren Keith lowman , @Amanda Babb , @Luis Zapata , @Joli Holmes , and @bh...

33 views 0 2
View post

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you