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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.