Issues with Validation/Condition
Hi there Fidel!
Cannot figure out how to do the following and i'm hoping your plugin can help.
On Transition "Ready for Testing" i want to make sure people have set issuetype "Bug Sub-Task" to status "Fixed" when the bug sub task priority is "critical" or "Major" but to skip validation on the bugs that are priority "Trivial".
There could be 2 bug sub tasks on one ticket, one Critical and one Trivial. The trivial one can be open and this is not a problem to transition the issue, but i want to make sure the Critical/Major one is set to "Fixed".
Can you please help!
Many Thanks.
Comments (6)
-
repo owner -
reporter This is blocking tickets which have not got any Bug Sub-Tasks on from going into test now
-
reporter Bug Sub-Tasks are raised to show what was found during its first round of testing, if a ticket has never been tested, there are no bug sub-tasks and yet tickets are failing validation for this rule when they have none.
-
repo owner I forgot to include the issue type in the validation. Try this boolean expression:
count(filterByPredicate(subtasks(), ^%{00014} = "Bug Sub-Task" AND ^%{00016} != "Fixed" AND ^%{00017} in ["Critical", "Major"])) = 0
I'm assuming that "Bug Sub-Task" are not linked issues, but sub-tasks.
-
reporter Yeah that is right, that seems to have done the trick, thanks so much as always for your help Fidel, love your work man.
-
reporter - changed status to resolved
- Log in to comment
Hi Ben,
Use "Boolean condition with math, date-time or text-string terms" validator in transition "Ready for Testing" of parent's workflow with the following boolean expression:
Note that: