How to skip isuue validator
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)
-
repo owner -
reporter - changed title to How to skip isuue validator
- changed version to 2.2.9
- edited description
-
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.
-
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.
-
reporter - attached Screenshot007.jpg
-
repo owner Then use "Boolean validator with math, date-time or text-string terms" with the following boolean expression:
%{00014} = "X" IMPLIES %{nnnnn} != null
replacing nnnnn with field code of field Y.
-
reporter thank you fiedel !
-
repo owner - changed status to resolved
- Log in to comment
Hi Michael,