Team,
We are experiencing the below error while creating hook in Bitbucket. OAuth (Incoming/Outgoing) is setup between Jira and Bitbucket.
Permission problems. You are not allowed to execute the requested JIRA Rest action. Please ensure that authentication method OAuth is enabled. Also the OAuth options "Allow 2-Legged OAuth" and "Allow user impersonation through 2-Legged OAuth" should be set on both sides of the application link (in- and outgoing connections) (CredentialsRequiredException: You do not have an authorized access token for the remote resource.)
As a system admin, We are able to create hooks and no permission error is coming up. But when other developers or project admins trying to create hooks, Same error is coming up.
We have checked that affected users are having view development tools permission in jira project
Kindly suggest.
Thanks
I think this error message you are seeing comes from the "Jira Hooks for Bitbucket" plugin.
The solution is to have every user click on any Jira ticket link in the Bitbucket UI before they use the hook. Clicking on a Jira ticket link in Bitbucket will automatically setup the "authorized access token" for that user that the hook is looking for.
Alternatively, consider trying my free "Control Freak" plugin instead. It offers the same functionality, and has a much better error message in this situation:
remote: ----- remote: Commit messages on "master" must reference valid JIRA tickets, remote: but Bitbucket cannot access JIRA to see if "[ABC-1]" exists. remote: Your Bitbucket account is missing OAUTH credentials into JIRA. remote: remote: Use this URL to set that up: remote: http://localhost:7990/bitbucket/plugins/servlet/applinks/oauth/login-dance/authorize remote: -----
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.