On this page

Use case

Hide transitions from status "Status A" to "Status B" if the previous status of the issue was "Status B". If the user needs to return to "Status B" that should be only possible from another status, let's say: "Status C"

Configuration

Add a Logical condition in a transition that goes from Status B to Status A. These statuses symbolize the previous status and the current status.

Expression

Add the following expression to enable the transition only if the previous status of the issue was not Status B.

%{issue.status.previous}!="Status B"

If you need to prevent an issue from ever returning to the same status again, you should use the following expression instead.

fieldHistory(%{issue.status}) !~ "Status B"

Alternatively, you could also use the following expression.

count(timesOfTransition("Status A", "Status B")) = 0

Screenshots

Related use cases


Error: Cannot create XmlPullParser