Our app is a public app that supports both cloud and on premise account.
We make use of createmeta api to get the issuetypes. Since this method is deprecated / removed in data center versions 9 and above, we are facing issue in supporting both cloud and on premise accounts at once. And also there is a possibility that on premise account are still having the old Jira data center versions too.
Is there an api to get the data center version even before making the createmeta api call.
Thanks @KCWong for that reply. Also, according to the documentation in Jira 9.2.0createmeta as a GET request is still available. I’ve just tested and I’ve got data in my local instance
$ curl --silent --user admin:admin --request GET --url 'http://localhost:2990/jira/rest/api/2/issue/createmeta/PROJ/issuetypes'
{
"maxResults": 50,
"startAt": 0,
"total": 5,
"isLast": true,
"values": [
{
"self": "http://localhost:2990/jira/rest/api/2/issuetype/10000",
"id": "10000",
"description": "Created by Jira Software - do not edit or delete. Issue type for a big user story that needs to be broken down.",
"iconUrl": "http://localhost:2990/jira/images/icons/issuetypes/epic.svg",
"name": "Epic",
"subtask": false
},
...
Since Jira 9.x Server/DC the old GET /rest/api/2/issue/createmeta is replaces by 2 separate methods:
GET /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes
GET /rest/api/2/issue/createmeta/{projectIdOrKey}/issuetypes/{issueTypeId}