Hi, we're looking to set the incident owner based on the group the creator user is a member of. I have created the script below based on the guidelines in the scripting documents but can't seem to get it to work properly, would appreciate some pointers if possible.
Cheers
group = groups.findByName ("Cyber Operations")
log.info (incident.owner_id)
log.info (group)
if incident.owner_id in group:
incident.owner_id = group
------------------------------
Leon Goodwin
------------------------------