Using condition & validator with popup

Issue #260 resolved
Daniel Grana created an issue

Hiya,

between 2 states we have 2 transitions. When value of a custom field is true -> transition 1 is used. No popup, everything ok. When value of a custom field is false -> transition 2 is used. in that transition we use a pop-up where the user has to set the custom field to true, and optionally enter a comment. We use a validator to make sure the value has been set to true. Problem: * when the value of custom field is false, we get the error entered in the validator -> ok * however, when changing the value in the popup to true, we get an error "Action XXX is invalid". The XXX corresponds to the transition ID. And we can't complete the transition.

any ideas what the problem could be?

Comments (2)

  1. Fidel Castro Armario repo owner

    The problem is that at the moment of executing a transition, both conditions and validators should be satisfied, and in you case the conditions becomes unsatisfied once you change the value of the field to "Ja".

    In order to solve the problem replace your current condition with "Boolean condition with math, date-time or text-string terms" using the following boolean expression:

    %{nnnnn} = "Nein" OR hasChanged(%{nnnnn})
    

    Replacing nnnnn with field code of "Releasenotes erstellt" custom field.

  2. Log in to comment