Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to get a list of projects associated with all issuetypes?

Rohith August 14, 2019

Hey, 

Is there a way to get a list of all projects associated with all issue types?
For example:
Issuetype    Project Name
1. Bug          Project1
                    Project2
                    Project3.
2. Story        Project2
                    Project6
.

..

Thanks.

 

2 answers

1 vote
Chander Inguva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 14, 2019

Hey @Rohith 

- If you have access to backend (database), you can query using SQL like this

 

SELECT itp.pname, p.pname from issuetype itp
JOIN jiraissue ji ON ji.issuetype = itp.ID
JOIN project p ON ji.PROJECT = p.ID
GROUP BY itp.pname, p.pname
ORDER BY itp.pname ASC

Note: Above query is for SQL Server

 

Hope this helps

 

Thanks

Chander Inguva 

0 votes
DPKJ
Community Champion
August 14, 2019

You can this information via Jira Issue Create Meta rest API.

<jira_base_url>/rest/api/2/issue/createmeta

For more information on this look at `Discovering project and issue type data` section on this page https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/

And

Here - https://docs.atlassian.com/software/jira/docs/api/REST/8.3.2/#api/2/issue-getCreateIssueMeta

Suggest an answer

Log in or Sign up to answer