Hi,
I used behavior to make comment field required with following code but it is required during the assign also.
def orgEstDEV = getFieldById(getFieldChanged())
def orgEstDEV_Val = orgEstDEV.getValue()
if((getActionName() != "Create") ){
def underlyingOrgEstDEVVal = underlyingIssue?.getCustomFieldValue(orgEstDEVDetails) as Long
def commentField = getFieldById("comment")
if( underlyingOrgEstDEVVal != orgEstDEV_Val){
if(commentField) {
commentField.setRequired(true)
}
}else{
commentField.setRequired(false)
}
}
On create underlying issue value will not be there so I written the condition not to execute for on create.
I am getting null for getActionName() for Assign so the condition is true then making comment field required.
How I can make comment field required when Original DEV (number) custom field change?
Any help is much appreciated.