Getting the issue type scheme of all projects in database.


It's very important for me get the issue type scheme associated of all projects in database. I dont find the way to get it. I don't know wich query I should execute.

Plese, help me.

Thanks so much!

2 answers

4 votes

Hi David,

This should return all Issue Types associated to the project "Test".

select IT.pname from project P
join configurationcontext CC on = CC. project
join fieldconfigschemeissuetype FCI on FCI.fieldconfigscheme = CC.fieldconfigscheme
join optionconfiguration OC on OC.fieldconfig = FCI.fieldconfiguration
join issuetype IT on = OC.optionid
where P.pname = 'Test'

Hope this helps

Able to get the results as expected.

Thank you.

Thanks Marcus, but i need all the projects that doesnt have the default issue type scheme.

I think the correct query is:

select project.pname, pkey
from project
where project.ID not in (
select project.ID
from project
join configurationcontext
on project.ID = configurationcontext.PROJECT
where configurationcontext.customfield = "issuetype"
and configurationcontext.FIELDCONFIGSCHEME != 10000
and configurationcontext.FIELDCONFIGSCHEME is not null)

Thanks Marcus!

Hi David,

I thought you needed all issues types associated to a specific project.

My bad :)

Your query does seem to get the expected results.

If you need any help, just let me know.

Can you please help to get a list of projects which has issuetype 'Bug'?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,400 views 15 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you