Hi,
We recently had some space problems, which caused new issues created to be created without workflow transitions.
I can identify all of them by doing:
SELECT *
FROM jiraissue
JOIN os_wfentry
ON jiraissue.workflow_id = os_wfentry.id
WHERE os_wfentry.state IS NULL
OR os_wfentry.state = 0;
in the database.
I would update all of them to a proper workflow state through the DB, but that requires downtime we cannot afford.
Is there a way to automatically update all the issues os_wfentry.state to 1, using Scriptrunner's console perhaps?
Thank you!
Hi Arama,
Have you tried to perform the following Integrity Checker in Jira?
It probably could help you resolve the workflow transition issue without performing the manual fix in database level.
https://confluence.atlassian.com/adminjiraserver/using-the-database-integrity-checker-938847667.html
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The integrity checker is built for finding and fixing these, amongst other things (Admin -> System -> Integrity check I think. But use the admin search if I'm wrong)
With ScriptRunner, there may be several things that you need to fix on your broken issues, the integrity check should handle them all for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.