Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

You are not allowed to execute the requested JIRA Rest action : Error while creating hook in BB

Sourabh Phanda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 1, 2018

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

 

1 answer

0 votes
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 2, 2018

 

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: -----

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events