Generally we are getting tickets through user's email in service desk when user raise a ticket through mail or service desk portal based on user email domain the custom filed should be updated
example: we have abc (abc@amway.com) when abc raise a ticket based his domain(amway) the (customfiled ) usertype should be amway.
how can we do this through scripting it is possible or not
issue.getReporter().getEmailAddress()
by using code we get reporter mail here how do we compare email domain