This issue happens as a result of the lack of using database transactions during the workflow transitions (which changes numerous tables) in Jira.
SELECT jiraissue.pkey, jiraissue.workflow_id, OS_WFENTRY.* FROM jiraissue INNER JOIN OS_WFENTRY ON jiraissue.workflow_id = OS_WFENTRY.id WHERE OS_WFENTRY.STATE IS NULL OR OS_WFENTRY.STATE = 0;
Update: For JIRA version 6.x I suggest reading this: http://kozelljozsef.blogspot.com/2014/11/jira-check-workflow-entry-states-are-correct.html
Thanks!
ReplyDeleteI've evolved it further: http://kozelljozsef.blogspot.hu/2014/11/jira-check-workflow-entry-states-are-correct.html
ReplyDelete