Make Assignment group as mandatory Once incident created (Not for new Records)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 01:46 PM
Hi,
I have one issue that after incident created some one remove the assignment group as saved,So need to stop this behavior that after incident created assignment group should make assignment group as mandatory for reassignment of queue(Not allowing to save incident with out any Queue).
Kindly help to achieve this.
Note: I don't want to make assignment group field as mandatory in configuration
Thanks & Regards
Krithvik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 01:48 PM
You can configure UI policy to make assignment group field mandatory.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 02:16 PM
You'll want to handle this on the server-side to cover all of the ways AG could be blanked out - when viewing the incident form, List view/Cell edit, API, scripts, ... Create a business rule that looks like this
Your Script on the Advanced tab should contain this
(function executeRule(current, previous /*null when async*/) {
if(current.assignment_group == ''){
current.setAbortAction(true);
}
})(current, previous);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 02:22 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2020 02:55 PM
Hi Krithvik,
You can set the assignment group mandatory with the use of client script. You need to have a onLoad client script, please find the script below.
function onLoad() {
//Type appropriate comment here, and begin script below
if (!g_form.isNewRecord()) {
g_form.setMandatory('assignment_group', true);
}
}
From above script assignment group will be mandatory for existing incident but not for new one.
Kindly mark my answer as Correct and helpful based on the Impact.
Regards,
Alok