Issue #975 resolved
Bharath Kumar Kappala
created an issue

We have a drop down field "Environment" in case the drop down value is CD then anyone in the role "CD Approvers" can click on the transition Approve. Incase if the drop down in CL then anyone in the role "CL Approvers" can click the transition Approve

Comments (2)

  1. Fidel Castro Armario repo owner

    Hi @Bharath Kumar Kappala,

    First of all, I inform you that we have a new support site. Please, use the new site, since current one is going to stop admitting new issues in not too long.

    You can use a "Boolean validator with math, date-time or text-string terms" with any of the following boolean expressions:

    1) If "Environment" has a value different from "CD" and "CL", then nobody can execute transition Approve:

    %{nnnnn} = "CD" AND isInRole(%{00020}, "CD Approvers") OR %{nnnnn} = "CL" AND isInRole(%{00020}, "CL Approvers")
    

    replacing nnnnn with field code for "Environment".

    2) If "Environment" has a value different from "CD" and "CL", then anyone can execute transition Approve:

    (%{nnnnn} = "CD" IMPLIES isInRole(%{00020}, "CD Approvers")) AND (%{nnnnn} = "CL" IMPLIES isInRole(%{00020}, "CL Approvers"))
    

    replacing nnnnn with field code for "Environment".

  2. Log in to comment