Help Setting a Validator
Issue #597
resolved
I'm trying to validate when i am linking a story to one epic i want to ensure that the same person " Current User " is the "Assignee" on the epic he is linking the story example :
I have a story called " Story1 ", and a epic called " epic1", i want to ensure that when someone triggers my transition called " Plan " this person is the same as the " Assignee " field on the epic. is this possible how do i do it ?
Comments (4)
-
repo owner -
Account Deactivated reporter Thank you, It worked, i just want to understand why the " First " tag, i was using just field value with linked issues.
-
repo owner Hi @antonio_stein,
Function fieldValue() returns a string list, and you can't compare a string with a string list. Function first() returns the first string in a string list.
-
repo owner - changed status to resolved
- Log in to comment
Hi Antônio,
You can do it using "Boolean validator with math, date-time or text-string terms" validator with the following boolean expression:
Note that:
%{00003}
is field code for Assignee.%{00020}
is field code for Current user.