Hi,
I have a custom field "Client" and another one "relevant entities".
When the field "Client" gets a specific value, let's say XX; I'd need that the "relevant entities" field to set a default value, YY.
I tried this code viaScript Runner-Behaviour plugin;
import com.onresolve.jira.groovy.user.FormField
FormField fieldClient = getFieldById("customfield_10112") def RelevantEntities = getFieldById("customfield_10367") def defaultValue = ("[10643]")
String client = fieldClient.getValue()
if (client.getvalue("[10297]") { //XX RelevantEntities.setFormValue(defaultValue) }
but it does not work. Any ideas please?
Thanks in advance for your help
Melissa