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
4,369,445
Community Members
 
Community Events
168
Community Groups

Behaviors - Setting conditionally hidden field mandatory only when visible

Hi

 

I have a field that is only visible if another field is set to a specific option on the previous step. What I'm unable to do is have the conditional field be mandatory ONLY when it's visible

 

Here's my current script

 

 def dropDown = getFieldById("customfield_12200")
def conditionA = getFieldById("customfield_13105")
log.debug("dropdown value" + dropDown.getValue())

if (dropDown.getValue() != "SC-229") {
conditionA.setHidden(true);
}

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events