Hi,
I wrote a script in the behavior environment for a cascade list field
The beginning of the code:
-------------
import com.atlassian.jira.component.ComponentAccessor
def customFieldManager = ComponentAccessor.customFieldManager
def optionsManager = ComponentAccessor.optionsManager
def outcomeField = getFieldById(fieldChanged)
def selectedOptions = outcomeField.getValue() as Map
def ParentOption = selectedOptions.get(0).toString()
def ChildOption = selectedOptions.get(1).toString()
def indicatorsField = getFieldByName("Resource")
// Get the all the options of Indicators
def indicatorsCF = customFieldManager.getCustomFieldObjectsByName("Resource")[0]
def config = indicatorsCF.getRelevantConfig(getIssueContext())
def options = optionsManager.getOptions(config)
-------------
But the script is executed only when both field values change (the Parent and the Child)
Is there a solution for the script to execute even when only the Parent value of the field changes?
Can anyone help me?
Regards,
Shoshi