Hi folks,
i just tried to get a scripted validator up&running, but it´s not working as expected:
import com.atlassian.jira.component.ComponentAccessor
def groupManager = ComponentAccessor.getGroupManager()
groupManager.isUserInGroup(issue.reporter?.name, 'Technical User')
||
(
issue.issueTypeObject.name != ('Incident')||
issue.issueTypeObject.name != ('Service Call')||
issue.issueTypeObject.name != ('Change Request')||
issue.issueTypeObject.name != ('Problem')||
issue.issueTypeObject.name != ('Workorder')
)The idea is to limit the creation of some specific issue types to specific user group only, so the reporter has to be part of the group "Technical User" or the to be created issue type is not in "Incident, Service Call, Change Request, Problem, Workorder".
Any ideas what i´m doing wrong? Unfortunately my programming skills are very limited... 
Thanks & regards,
Hans-Hermann