Used the below code for the same, but it is not working, Any help will be appreciated,Where can I see the logs?
import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.jira.groovy.user.FormField
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
getFieldById(getFieldChanged()).clearError()
def tsvalue = getFieldById(getFieldChanged()). getValue()
if(tsvalue.endsWith(’m’) && toInteger (tsvalue.minus(“m”))< 15) {
getFieldById(getFieldChanged()).setError(“Value is not proper”)
}
if(tsvalue.endsWith(’h’) && toInteger (tsvalue.minus(“h”)) > 8) {
getFieldById(getFieldChanged()).setError(“Value is not proper”)
}