Forums

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

Allowing OAuth access from Bitbucket to Jira

Zeev Roytman February 27, 2019

Hi,

I'm trying to access Jira from Bitbucket by clicking in the Issue link. According to this post the Allowing window should be raised in order to Allow/Deny the access. Actually, no window is being raised, so there is no way to allow the access. When I enter Jira and check the Authorized Applications under my profile, no applications are shown there. For other developers this works perfect.

Maybe some period ago the window has been raised and i clicked on Deny option by mistake.

So how can i raise this window again in order to allow the access from Bitbucket to Jira?

Thanks a lot!

1 answer

1 accepted

0 votes
Answer accepted
Nir Haimov
Community Champion
March 7, 2019

Hi Zeev,

Try the following steps:

  1. In your Bitbucket, go to admin page -> Application Links
  2. Click F12 to open browser dev tools
  3. Go to "console" tab
  4. Write this line there and click enter.
    $($("tbody tr")[0]).attr("id")

    The zero inside the braces is the order of Jira in your table.

    If your Jira is first you write 0, if it's second you write 1, if it's third you write 2 and so on...
    In my case, Jira is first so i wrote 0
    2019-03-07_13-39-34.png
  5. After you click enter you will get something like serial number, for example:
    8d121eba-9138-3dhf-a19a-d8ac39aeh6fd
    This is the id of atlassian for the connection between your Bitbucket to Jira.
    Copy it and save it for next step.
  6. Open new tab and in the url write the following:
    <your-jira-url>/plugins/servlet/applinks/oauth/login-dance/authorize?applicationLinkID=xxxxxxxx
    just replace the xxxxxxxx with the id you copied in step 5 and click enter.
  7. Now you should be again in the page that ask you "Allow" / "Deny"

Let me know if it works or something went wrong in the process.

Thanks,
Nir

Zeev Roytman March 7, 2019

@Nir Haimov , Thank you very much! Works perfect! Just a small fix of your solution:

#6. The URL should be of Bitbucket, not of Jira: <your-bitbucket-url>/plugins/servlet/applinks/oauth/login-dance/authorize?applicationLinkID=xxxxxxxx

 

Thanks again!

Nir Haimov
Community Champion
March 7, 2019

@Zeev Roytman 

Glad to help.

And the URL was my mistake :)

Like Zeev Roytman likes this

Suggest an answer

Log in or Sign up to answer