User cannot create issues in Jira from Bitbucket Server/Datacenter after upgrade to Jira 9.x

Still need help?

The Atlassian Community is here for you.

Ask the community


The content on this page relates to platforms which are supported; however, the content is out of scope of our Atlassian Support Offerings. Consequently, Atlassian cannot guarantee support. Please be aware that this material is provided for your information only and you may use it at your own risk.

Summary

After an upgrade to Jira 9.x, while trying to create an issue from Bitbucket, the create fails with "An unexpected response was received from Jira":

Environment

  • Bitbucket Server and Data Center 7.15 or older
  • Jira 9.x or newer

Diagnosis

While trying to create an issue from Bitbucket in Jira, it fails with the message: "An unexpected response was received from Jira."

After checking the HAR file, it is possible to see a call to this endpoint: 

<bitbucket_base_url>/rest/jira-integration/1.0/servers/XXXXXXXXXXXXXX/projects

The answer to the call is HTTP 200, which does not indicate an issue, but the answer to the call has this message: JiraErrors{errorMessages=[Issue Does Not Exist], errors={}}.

Cause

One of the calls made from Bitbucket in the backend is to this endpoint: 

bitbucket/rest/api/2/issue/createmeta/\{projectIdOrKey}/issuetypes

But the createmeta endpoint was deprecated in Jira 9.x: Createmeta REST endpoint to be removed.

Solution

Upgrade Bitbucket to 7.16 or newer version.


Last modified on Dec 19, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.