Assigns an analyst to an incident.
By default, the analyst is picked randomly from the available users, according to the provided roles. However, if no roles are provided, this will fetch all users.
The analyst will be picked according to the
Machine-Learning: DBot will calculate and decide who is the best analyst for the job.
- top-user: The user that is most commonly owns this type of incident.
- less-busy-user: The less busy analyst will be picked to be the incident owner.
- online: The analyst is picked randomly from all online analysts, according to the provided roles (if no roles are provided, this will fetch all users).
- current: The user that executed the command.
|roles||The optional list of roles to assign users from. Can accept arrays or comma-separated list. Leave this empty to fetch all users.|
|assignBy||The owner to assign. Can be, "random", "online", "current", "machine-learning", "top-user", or "less-busy-user". The default is random.|
|username||The provided user who will be assigned as the incident owner (optional).|
|The user of the provided email who is assigned as the incident owner (optional).|
There are no outputs for this script.