The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Behaviors - Setting conditionally hidden field mandatory only when visible

Steve Letch
July 17, 2019

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

Comments for this post are closed

Community moderators have prevented the ability to post new comments.

TAGS
AUG Leaders

Atlassian Community Events