the existing creaemeta request '/rest/api/2/issue/createmeta' was deprecated in Jira 8.4 and created a new method for finding issuetypes (specifically custom fields) with the following endpoint
issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}
The original request in earlier versions than 8.4 returned a list of custom fields, but having updated to 9.0 and using the new url I only get back
{"maxResults":50,"startAt":0,"total":0,"isLast":true,"values":[]}
The code I'm using (simplified for this example) is this
url = f"{self.base_url}/rest/api/2/issue/createmeta/{'%s' % x.item_id}/issuetypes"
resp = self.make_api_call(url)
for issue_type in resp.json().get('values', []):
url = f"{self.base_url}/rest/api/2/issue/createmeta/{'%s' % x.item_id}/issuetypes/{issue_type['id']}"
resp = self.make_api_call(url)
print(resp.json().get('values', [])