I have a vocabulary containing some terms for issues' states:

* Open
* In progress
* Closed

I want to be able to define allowed "next" states for each term. So that a user can only change:

* Open -> In progress
* In progress -> Open, or Closed
* Closed -> None

I am using Drupal 7.