I get this error when I want to merge via API 2.0
{"type": "error", "error": {"message": "newstatus: Merging a pull request requires write access to the destination branch.", "fields": {"newstatus": ["Merging a pull request requires write access to the destination branch."]}}}
Hello @gcordobap ,
Welcome to Atlassian Community!
Based on the error message you are receiving, the user you are using to authenticate the API call does not have write access to the destination branch (or the destination repository in case of a fork) of the pull request
This could happen if :
I would suggest checking the two scenarios above to confirm if any of those access settings are preventing your user to merge the pull request.
Hope that helps!
Thank you, @gcordobap
Patrik S
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.