Hi, is it possible to certain hide 'field 2' values based on what value is selected in 'field 1' using behaviours?
Im new to script runner.
Thanks
Rob
import com.onresolve.jira.groovy.user.FieldBehavioursimport com.onresolve.jira.groovy.user.FormFieldFormField CF1 = getFieldById(getFieldChanged())if ( CF1.getValue().equals("the value you want") ) {getFieldById("customfield_1234").setHidden(true)} else {getFieldById("customfield_1234").setHidden(false)}
Attach this behaviour to the field based on which value you need to make the other field hidden . Replace customfield_1234 with your actual custom field ID ( that needs to be hidden)
Hi,
Thanks for your help, but i need to hide values of another field rather than the whole field. Is that possible?
IF CF_1 = '123'
THEN CF_2 contains only half the values (eg '1','4','6')
It's possible . Please refer below link where I have answered similar query .
https://community.atlassian.com/t5/Jira-questions/Remove-option-from-Select-list-custom-field-using-behaviour/qaq-p/1412083
Thanks Subrat ill give it a go! Thanks
It looks like you're new here. Sign in or register to get started.