How to List all the Issue Status Transitions from Database in Jira
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
The purpose of this article is to show how to get a list of all the issue status transition from database in Jira. The status transition can be seen at the "History" tab of the issue. This article will help on getting a list of all issue status transition of all issues in Jira by executing a SQL command against the JIRA database.
Solution
Workaround
Log in to Jira database.
Run the following SQL command to list the status transitions:
1
SELECT changeitem.oldstring, changeitem.newstring, changegroup.author, changegroup.created FROM changeitem JOIN changegroup ON changeitem.groupid=changegroup.id WHERE changeitem.field='status';
Example result will look like following:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
oldstring | newstring | author | created
--------------------+--------------------+----------+-----------------------
Open | Review | admin | 2015-05-25 09:27:46+08
Resolved | Closed | admin1 | 2015-05-25 09:51:30+08
Open | Closed | admin | 2015-05-25 09:59:22+08
Investigation | Analysis | admin2 | 2015-05-25 10:44:22+08
Analysis | Consultation | admin | 2015-05-25 10:51:13+08
Open | Resolved | admin | 2015-05-25 10:53:26+08
Resolved | Closed | admin1 | 2015-05-25 10:53:29+08
Change Approval | Change Development | admin | 2015-05-25 11:35:27+08
Open | Review | admin2 | 2015-05-25 12:05:58+08
Open | Resolved | admin | 2015-05-25 12:15:20+08
Resolved | Closed | admin | 2015-05-25 12:15:23+08
...
Was this helpful?