Need to return true if and only if the following condition is true
the customfield ="CTI Alert" or (the user in group TIER2 and customfield !="CTI Alert")
import com.atlassian.jira.component.ComponentAccessor;
def customField = ComponentAccessor.getCustomFieldManager().getCustomFieldObject("11504");
def value = (String)issue.getCustomFieldValue(customField);
if (value = "CTI Alert") || (value != "CTI Alert") && isUserMemberOfGroup('Tier2')
{
return true;
else
return false;
}
What could be the problem and what is the correct syntax?