Found solution for workflow functions
```groovy
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.config.ConstantsManager
import com.atlassian.jira.workflow.ImmutableWorkflowDescriptor
import com.atlassian.jira.workflow.JiraWorkflow
import com.atlassian.jira.workflow.WorkflowManager
import com.atlassian.jira.web.action.admin.workflow.ViewWorkflowStep
import com.opensymphony.workflow.loader.ActionDescriptor
Closure transition = {
String sourceStatus = issue.status.name
JiraWorkflow workflow = ComponentAccessor.getWorkflowManager().getWorkflow(issue)
ImmutableWorkflowDescriptor workflowDescriptor = workflow.getDescriptor()
String actionName = workflowDescriptor.getAction(transientVars.actionId as int).getName()
ActionDescriptor actionDescriptor = workflow.getActionsByName(actionName).getAt(0)
Integer nextSymphonyStepId = actionDescriptor.getUnconditionalResult().getStep()
String nextStatus = workflow.getDescriptor().getStep(nextSymphonyStepId).name
return (List) [sourceStatus, actionName, nextStatus]
}
```
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.