Practically, it is not possible to transition an issue back to its previous status. However, you can use the “on hold” feature to transition an issue back to its prior status. Here are the steps,
In a workflow, Create a global transition to the ‘On Hold’ state.
Now from ‘On Hold’ status create another transition to every other status you want to come back to
Since the transition names cannot be the same, add a blank space at the end of it.
Now you don’t want the status transition from the ‘On Hold’ and ‘Done’ to ‘On Hold’ So you will hide the other status “On Hold” by adding the value field condition on the global transition.