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 09:27 PM
Hey Krithvik,
I would suggest you to go with On Before Update Business Rule. Where you can alert an Error Message if assignment group is empty and abort the update action.
Under Advanced Tab Script will like the below:
(function executeRule(current, previous /*null when async*/) {
if(current.assignment_group == ''){
gs.addErrorMessage("Please Select Assignment Group");
current.setAbortAction(true);
}
})(
If my reply helped with your issue please mark it as ✅Correct & 👍Helpful.
Let me know if you stuck somewhere.
Thank you!!
Kind Regards,
Mohammad Danish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 09:57 PM
Hi
Let me show you my example (No Code solution) with using a UI Policy:
On NEW Records, the field is NOT mandatory:
On existing Records:
Here the UI Policy that I created:
Give it a shot and let me know, if that answery your question and mark my answer as correct and helpful.
Have fun.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020 10:24 PM
Hi Krithvik,
For this you can create ui policy or client script so that you can set assignment group mandatory as per your condition.
If my answer helped you in any way, mark answer as helpful and correct.
Thanks and regards,
Megha.