We have mapped workflow statuses in one of 3 Jira categories ( to do, in progress, done).
So e.g. IN DEVELOPMENT and IN TESTING workflow statuses have both Jira category In progress. With action TEST NOK , You can transition back from IN TESTING to IN DEVELOPMENT. Somehow, Category in that case becomes DONE. Even though when you check configuration for mapping to categories it is set up that IN DEVELOPMENT should be categorized into In progress.
Only RESOLVED, CLOSED, REJECTED are categorized into Done, but somehow when we reopen ticket , Done category is not updated to In progress.