Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

workaround for behaviors on kanban board

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.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);}

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

Apps for Confluence you won't want to miss: RSVP for September's Appy Hours

Calling all collaborators and Confluence users! Our Appy Hours event on September 29th features 4 presenters demoing functionality to superpower Confluence. Don't miss learning about these apps i...

110 views 0 9
Read article

Atlassian Community Events