Hi guys,
There are 190+ components in projec. I want only "Hardware" and "HWQ" show and hide others but it not work.
import com.atlassian.jira.component.ComponentAccessor
import static com.atlassian.jira.issue.IssueFieldConstants.*
def Component = getFieldById("Component/s");
def CompValue = Component.getFormValue();
def allowedComponents = ["Software", "HWQ", "HW"]
Component.setFormValue(allowedComponents)