We have Jira and Bitbucket Data Center. They are connected with a two-way application link and the integration works as it should. There is only one glitch, clicking a Jira link in Bitbucket fails if the issue is archived in Jira.
Right-clicking on the link and opening in a new tab works, but when just clicking the link a pop-up is shown telling 'Can't display issues Either you don't have access to view them or they don't exists...'. If the Jira issue is un-archived in Jira, clicking the link in Bitbucket works as it should.
I did not find any existing community question on this topic or any known bug on Atlassian side, so I wanted to ask if anyone has experienced this problem and knows if there is a solution or work around?
Hi @Eva Höglin
This is an expected behavior in Jira where an archived project won't show up in search results. However, it can still be accessed directly via a link. I'm including a screenshot of the warning dialog that appears when archiving a project; in this example, I've archived an issue with the ID TASK-503.
When you click on the Jira ticket within commits or other pages in Bitbucket, Bitbucket attempts to use the search API. Since the ticket won't appear in the search results, Bitbucket displays an error. I'm sharing an example of the search API request that Bitbucket executes for the Jira issue TASK-503.
GET /rest/api/2/search?jql=issuekey+IN+%28TASK-503%29+ORDER+BY+issuekey&fields=%2Aall%2C-comment&expand=renderedFields%2Ctransitions&validateQuery=false
It appears that currently there may not be a workaround for this issue. To have the Jira ticket appear in Bitbucket when clicking on it, you might need to consider unarchiving the ticket.
Regards,
Aman
Thank you very much for your answer. It explains the behavior.
BR,
Eva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.