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.FieldBehaviours
import com.onresolve.jira.groovy.user.FormField
FormField 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')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's possible . Please refer below link where I have answered similar query .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Subrat ill give it a go! Thanks :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, you need to get the option hiding code from the other script and put it together in above behaviour to make it work .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.