Error during push to stash

When the Push Check plugin has been enabled it's not possible to push without authorising the plugin to use JIRA.

The error displayed directly from git is:

[Syntax check] 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.)


Did you face such problem, how can you force the plugin to authorize within JIRA per each individual user?


2 answers

0 votes

Each user have to do the OAuth dance once. It is like clicking the "I Agree" button and you can't do it for someone else smile

You will need to do this for the standard JIRA Bitbucket integration anyway. It is not just for this plugin. And once you do it, all interactions will use the same token.

I know this is late to the party, but how exactly do we do the "OAuth dance?

I'm a sysadmin on both Jira and Bitbucket, and can push without problems, with the push check enabled. However, when a project resource, who has admin rights to the bitbucket project (but not system wide admin rights, nor admin rights on Jira), does this, he gets the error.

Any document or something I can read to help us with the OAuth dance?

@Jobin Kuruvilla [Go2Group] Hi Jobin,

The link referred above is not helping much. I am experiencing the same issue as described by @Jakub Narloch intially


Do you have any fix to overcome the issue.



Any resolution on this.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

228 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you