Hi there,
According to this post: https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html, the /createmeta endpoint will be replaced with the solution described in the post.
My approach so far:
I am currently using a script which uses the endpoint:
/rest/api/2/issue/createmeta?projectKeys=%s&expand=projects.issuetypes.fields
, to extract the issuetypes fields.
Following the solution in the post (see link above), I changed my request to:
/rest/api/2/issue/createmeta/{projectId}/issuetypes
, and for the projectId, I use the id number I get from the request:
/rest/api/2/project
In both request, I use Basic Authorization.
Additional info:
I also used version 3 of the API but still not success. Everytime I get a 404 back. My client is using the Jira Cloud. I also tried the request with:
/rest/api/2/issue/createmeta/{projectId}/issuetypes/{issueId}
, but this also did not work.
Thanks in advance for your help/ideas :)
Can you confirm if this is for Data Center or Cloud ? For me it worked for Data Center.
Hi Kishan,
Thanks for the quick feedback and help.
Yep, I can confirm that this is for Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vincent von Büren , as far as i know, it won't work for you because dark feature functionality is not yet available on jira cloud. You can start watching this bug
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishan,
I had a chat with the senior devs at my company and he said that the deprecation of the /createmeta endpoint is only relevant for the Jira Server, but NOT for the JIRA Cloud. He then highlighted that the REST API for the Jira Server is different to the REST API of the Jira Cloud.
Looking at the changelog of the Jira Cloud, there is no indication that the /createmeta endpoint won't be supported in the future.
Looking at the changelog/reference sheet of the Jira Server REST API, there is clearly the note that /createmeta will be soon deprecated.
To sum it up, I think that I was looking for a problem which never actually existed. Because again, for the REST API Jira Cloud, the /createmeta endpoint continues to work.
Links:
Changelog Jira Cloud: https://developer.atlassian.com/cloud/jira/platform/changelog/
Changelog/Reference sheet for Jira Server REST Api mentions the deprecated /createmeta entpoint: https://docs.atlassian.com/software/jira/docs/api/REST/8.18.1/#api/2/issue-getCreateIssueMeta
What do you think?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vincent,
You are right, I have just tested few things here. You need to use v3 API. refer below -
I am able to extract the issuetypes fields with below endpoints.
eg:
https://<yourdomain>/rest/api/3/issue/createmeta?projectIds=10000
https://<yourdomain>/rest/api/3/issue/createmeta?projectIds=10000&issuetypeIds=10002
Please check if this works for you too.
If you have found this answer useful, please accept the answer to help other community members.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.