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
Published 15 hours ago in Agile

Managing Projects in Several Jiras at the Same Time

Have you ever noticed that fixing specific problems might be a door opener for a bigger challenge, affecting a wider audience? This was exactly the case when we, as a service company working with mul...

64 views 0 9
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