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 yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

67 views 0 1
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