Hello everyone,
I'm trying to create a validator using Scriptrunner and so far I came up with the following expression:
(issue?.isEpic == false && issue?.customfield_10100 =! null) ?
(
(issue?.customfield_10100.value == "Sim" && issue.epic != null) ||
(issue?.customfield_10100.value == "Não")
) :
falseThis works when the custom field 10100 is on the screen, but I have a few cases where the screen for the issue type in the same workflow does not have the custom field and the transition breaks
Is there a way to make this validation works only for the screens that have the field?