Condition to allow only if issue has been set to the selected status anytime before the transition
To add Previous Status Condition, go to the transition of your workflow, switch to Conditions tab and click on Add Condition button.
Select JEP - Previous Status Condition and click Add button
In the configuration screen, select the status to restrict that the issue should be in this status anytime before to allow the transition.
Enable Look for just before current status option, if you want the most recent status to be the same as selected one. For instance if this option is enabled and In Review status is selected, the issue's most recent status should be In Review to allow the transition. Otherwise (if the option is not enabled), it is OK to be in In Review status anytime before this transition.
That's it, the condition is added to the transition.
Please do not forget to publish the workflow.