I have the below sample code. I want to enable a field to few projects (3) out of "ALL PROJECTS"(100) selection from the mapping list. How do I mention the field to be available only for a few projects in the script?
import com.atlassian.jira.issue.IssueFieldConstants
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
final String fieldName = 'TextField'
// get field by name and hide it
getFieldByName(fieldName).setHidden(true)