ALL,
I have used the customized plugin on one of the post fuction and below code to change the issue type which has different workflow.
Here the functionality works fine. but missing the history on issue.
Due to this our reports are failing.
workflowManager.migrateIssueToWorkflow(issue, workflowManager.getWorkflow(issue.getProjectId(), newIssueTypeId), status);