I can achieve it via REST API easily. try to find some code sample about scriptrunner:
1. create a pull request between two branch,
2. add approver and comment
3. then approved it
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.