I need code for adaptavist script runner...
To withdraw approval from a specific user when there is update in pull request.
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
-> 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sandeep549
We have created for You script in Adaptavist library which is doing what You want to achieve
https://library.adaptavist.com/entity/selectively-withdraw-approvals-when-a-pull-request-changes
If you have any further question, please ask
kind regards
Tomasz Wozniak
ScriptRunner for Bitbucket developer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.