If resolution of the field is set to "Duplicate" then I want to make Linked Issues field mandatory such that Issue won't transition and user will get error.
I tried below script in behavior, but it is not working:
def resolution = getFieldById("resolution")
def resolutionValue = resolution.getFormValue()
def issueLinkType = getFieldById("issuelinks")
if(resolutionValue == "Duplicate"){
issueLinkType.setRequired(true)
} else{
issueLinkType.setRequired(false)
}