Forums

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

JIRA Database transition screens SQL

Dennis S_
Contributor
July 16, 2018

Hi everybody,

 

I want to query all unused screens of my JIRA instance with SQL.

I have already queried all screens, which are not assigned to any screen scheme. But the result also includes transition screens. Now, I want to query all screens, which are used as a transition screen. But I can´t find any connection to transition screens in the database (model).

 

How could a query to find transition screens looks like or rather where are the respective connections?

 

Thank you in advance for your support.

 

Best regards,

Dennis 

 

4 answers

1 accepted

2 votes
Answer accepted
Pete Singleton
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.
July 16, 2018

There is no direct link between workflow transitions and screen ids.  However, in the 'JIRAWORKFLOWS' table the XML for the workflow is stored in the column 'Descriptor'.  This XML will contain the screen information (look for "jira.fieldscreen.id").

0 votes
Alberto Aragón February 17, 2022

Hi Dennis,

 

you simply can use the Groovy scripts provided by Atlassian in this page:

 

https://confluence.atlassian.com/clean/advanced-cleanup-1018789335.html

0 votes
Dennis S_
Contributor
July 16, 2018

Hi Alexey,

 

thanks for your answer. Looks like an very interesting plugin. Nonetheless, is there any possibility to query the transition screens from the database?

 

Best regards,

Dennis

0 votes
Alexey Matveev
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.
July 16, 2018

Suggest an answer

Log in or Sign up to answer