We want to restrict sub-task type creation depending on parent issue status:
We would use the following configuration of Boolean validator with math, date-time or text-string terms:
The boolean expression used: (%{00042} = “Open” AND (%{00014} = “Sub-tasks_type_1” OR %{00014} = “Sub-tasks_type_2” OR %{00014} = “Sub-tasks_type_3”)) OR (%{00042} = “Resolved” AND (%{00014} = “Sub-tasks_type_1” OR %{00014} = “Sub-tasks_type_4”))
Note that:
Once configured, the transition will look like this:
Let us suppose that we replace restriction 3 with:
"If parent status is different from "Resolved" and "Open" any sub-task type is allowed."
In that case, the following configuration will do the task:
The boolean expression used: (%{00042} = “Open” AND (%{00014} = “Sub-tasks_type_1” OR %{00014} = “Sub-tasks_type_2” OR %{00014} = “Sub-tasks_type_3”)) OR (%{00042} = “Resolved” AND (%{00014} = “Sub-tasks_type_1” OR %{00014} = “Sub-tasks_type_4”)) OR (%{00042} != “Open” AND %{00042} != “Resolved”)
Note that:
Once configured, the transition will look like this: