behavior_setAsReadOnly_customField
Wed Nov 13 2024 18:03:55 GMT+0000 (Coordinated Universal Time)
Saved by
@belleJar
#groovy
// customfield Security Level
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
// Get the field by its name
def securityLevelField = getFieldByName("Security Level")
// Make the field read-only
securityLevelField.setReadOnly(true)
content_copyCOPY
set customfield as readOnly on create/ edit
Comments