I need to know list of all projects in jira using a particular issue type.
Is there any SQL query for same
@Ron Jacob, you can find this information on the issue type scheme administration screen.
Here is a SQL query that will return the list of project for all issue types:
select IT.id, IT.pname, PROJ.namefrom configurationcontext CCjoin optionconfiguration OC on OC.fieldconfig = CC.fieldconfigschemejoin issuetype IT on IT.id = OC.optionidjoin project PROJ on PROJ.id = CC.projectorder by IT.pname;
Hi,
The below query worked for me. Give a try.
SELECT DISTINCT P.pname, P.pkey, P.lead AS projectFROM project as PINNER JOIN jiraissue as J on J.PROJECT = P.IDINNER JOIN issuetype as I on I.ID = J.issuetype WHERE J.issuetype= 10300
Thanks,
Ipsita Dash
@Ron Jacob, if my answer addressed your question, would you please 'Accept' it?
It looks like you're new here. Sign in or register to get started.