hi team, i have created a behavior that is running perfectly from edit/create screen on a Jira issue. But when i try to edit an issue from Kanban Board, the behavior does not gets triggered. I understand its a limitation of Behaviors on Kanban board. Said that, is there any workaround? Like listeners/validators/postfucntion? Or something that we can do on kanban board?
Behavior details -
Behavior makes 2 fields mandatory based on another field value selection.
Code -
import com.atlassian.jira.component.ComponentAccessor;
import com.onresolve.jira.groovy.user.FieldBehaviours;
import groovy.transform.BaseScript;
@BaseScript FieldBehaviours fieldBehaviours
def fld1 = getFieldById(id1);
def fld2 = getFieldById(id2);
if(fld1.getValue().toString().contains(somevalue)) {fld2.setHidden(false).setRequired(true); }
else {fld2.setHidden(true).setRequired(false);}