What is the right way to set the incident members in a script? I have incidents that are being created by an API script, the "Created By" shows up as the API key and the "Owner" is assigned to the default group. I have a script that changes the owner of the incident via a menu item rule
incident.owner_id = principal.id
But when I do this, it sets the incident members from empty to the default group. I've tried different methods of "unsetting" the members with varying success.
incident.members = None
# or even tried
incident.members = []
But none of these methods are working as expected within the same script that sets the owner_id - they all end up with the incident members containing the default group.
I'm on version 37.2.46 if that helps.
------------------------------
David Vasil
------------------------------