Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to withdraw a reviewer approval from a pull request when there are further commits?

I need code for adaptavist script runner... 

To withdraw approval from a specific user when there is update in pull request. 

1 answer

Hi @sandeep549 ,

Inside ScriptRunner for Bitbucket we have an Event Listener called "Withdraw approvals when a pull request changed".

That event listener will withdraw all approvals for the pull request? Is that OK? Or do you need something more custom?

Kind regards,

Robert Giddings,

ScriptRunner for Bitbucket

@Robert Giddings _Adaptavist_ 

-> Lets say we have 3 reviewer in pull request A, B ,C

-> When there is further update in pull request, I only want to withdraw approval from reviewer "A"

It will be really helpful if you can give me complete code for this script, I'm beginner to this.

Hi @sandeep549 
We have created for You script in Adaptavist library which is doing what You want to achieve

If you have any further question, please ask

kind regards
Tomasz Wozniak

ScriptRunner for Bitbucket developer

I'm unable to open this URL, it's unreachable.

Hi @sandeep549 

Sorry for broken link, it is fixed now

Thanks @twozniak  for your great help, I would surely try this when needed next time. You know it's almost a year before I required this, hope you understand. I'm keeping the script for future reference though.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

181 views 1 3
Read article

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