How to skip isuue validator

Issue #447 resolved
Michael shechter created an issue

Hi Fidel,

I have workflow with two issue types. on the create transition I have a few validator that relevant only for one of the issue type. two question: 1.is it possible to skip all the validator if the issue type is X 2.can I use the Boolean validator and enter all the validators on one validator function and each validator will set different error massage ?

thank you.

Comments (8)

  1. Fidel Castro Armario repo owner

    Hi Michael,

    • Which issue validator are you using?
    • Under which circumstances do you want to skip the validator?
  2. Fidel Castro Armario repo owner

    Hi Michael,

    If you want specific error messages for different circumstances, you should decompose your big boolean expression into several small ones and implement each of them in a different "Boolean validator with math, date-time or text-string terms", and input in each of them an specific error message.

    If you want that a validation only to be applied to "Bug" and "Improvement" issue types, then you should use a boolean expression like this:

    %{00014} in ["Bug", "Improvement"] IMPLIES ( validation_boolean_expression )
    

    If you want that a validation only to be applied to issue types different from "Bug" and "Improvement", then you should use a boolean expression like this:

    %{00014} not in ["Bug", "Improvement"] IMPLIES ( validation_boolean_expression )
    

    Replacing validation_boolean_expression with the actual boolean expression of your validation.

  3. Michael shechter reporter

    I'm using "a custom field is/isn't initialized" I what that if the issue type is X the filed Y should be initialized.

  4. Log in to comment