User cannot create issues in Jira from Bitbucket Server/Datacenter after upgrade to Jira 9.x
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.
要約
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":
環境
- Bitbucket Server and Data Center 7.15 or older
- Jira 9.x or newer
診断
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={}}.
原因
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.
ソリューション
Upgrade Bitbucket to 7.16 or newer version.