Very easy, try to enter in the “Groovy Script Console” and execute this code.

import com.atlassian.jira.component.ComponentAccessor

def workflowManager = ComponentAccessor.workflowManager
def schemeManager = ComponentAccessor.workflowSchemeManager

def sb = new StringBuffer()

workflowManager.workflows.each {
    def schemes = schemeManager.getSchemesForWorkflow(it)
    if(schemes.size() == 0) {
        sb.append("Deleting workflow: ${it.name}\n")
        workflowManager.deleteWorkflow(it)
    }
}

return sb.toString()

source extracted from here

Posted by:.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s