In the following use case we are going to move the current issue to another issue type.
Make sure this post function is the last one in your post functions list.
Add the Move issue post function to the desired workflow transition.
Choose Retain the project
Choose Selected issue type and select a specific issue type from the drop down, e.g. Epic or Task.
Choose Retain the status
Move issue