I foward you the support reply :
for get a API call to list all the project that uses a specific issue type. You can do the same by accessing the below link:
/rest/api/2/issue/createmeta?issuetypeNames=mention the issue type here
it works
regards
Hello @Frédéric Battesti
I was looking for the same question, so i tried your trick.
It works but not the way I wanted : it does not only list the projects using only this issue type (what I thought) but it lists all projects AND also the project using it
The only difference is for the project having it, the line issuetypes is like this
"issuetypes":[{"self":"https://etc-etc...
while for the others the bracket is closed
"issuetypes":[]}...
There is no other way ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I develop a Jira app that brings a new issue type.
My app has a configuration page accessible only by administrators which lists the Jira projects already configured to use my issue type.
With Jira 8 REST API, it was possible to use the method GET /rest/api/2/issue/createmeta?issuetypeNames (as mentioned by @Frédéric Battesti ).
But this method has been removed of the API since Jira 9 : https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html
As shown in the previous link, it is now possible to use GET /rest/issue/createmeta/{projectIdOrKey}/issuetypes , but it is not a performant solution because we have to send one request for each project.
So I tried to use the method GET /rest/issuetypescheme?expand=schemes.issueTypes. It works but it is not faster because Jira takes a long time to respond to this single request (about 1 minute for 500 projects).
So my question is : with REST API of Jira 9, what is the more performant solution to get the list of projects using a specific issue type ?
Thanks !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you are an admin you can go into settings > issues> Issuetype and determine the Issuetype schemes which may give the full view but best to then cross reference with the Issuetype schemes which provide project usage of the aforementioned schemes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your quick reply
I need to use the rest API to make a file that gives me this list.
A issue type exists. It's in projects.
I have to make a file which gives me the list of projects.
Only the rest API could meet this need.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.