Hi!
Can we set a custom field as mandatory based on another custom field value at issue creation stage? (with Simple scripted validator)
I Have:
"customfield_17212" (Select List) with optioins: 23742, 23745, 23749, 23753 - if filled (condition).
"customfield_10355" (Select List) - must be required.
I think this script can help me, but, it is not working.
import com.atlassian.jira.ComponentManager
FormField field1 = getFieldById("customfield_17212")
FormField field2 = getFieldById("customfield_10355")
if(field1.getValue().equals("23742","23745","23749","23753"))
{ field2.setRequired(true) }
else { field2.setRequired(false) }Please help me,
Sergey.