- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:05 AM
I have a use case where the request is to set a problem record assign to based on who is managing the service selected. My issue is that assignment group mapping is based on the support group that many of these managing users are not apart of, which violates the assign to being apart of the assignment group as intended.
I am curious what you guys recommend here as a best practice?
My current thoughts...
1. Run an ignore function or something to bypass this.
2. Require these users be apart of the support group.
Thanks so much for the help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:08 AM
Not recommended practice.
I have always seen cases where we stick to the OOB concept.
First group is populated and then members from that group are filtered and shown in assigned to field
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:08 AM
Not recommended practice.
I have always seen cases where we stick to the OOB concept.
First group is populated and then members from that group are filtered and shown in assigned to field
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:11 AM
I appreciate you taking the time. I agree completely. Even if I do bypass the validation that requires the relationship to exist, it breaks the model and expected function of the record. I can see this causing confusion and issues down the road for both future development and end user experiences. Unless I hear a good secondary option, I am going to push back recommending we add these users to their managing groups.
I just worry I am going to be told to do it regardless and need to do the best I can in spite of a bad situation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2023 07:12 AM
Hello @Duke1
In this case you can use a Display Business Rule :-
(function executeRule(current, previous /*null when async*/) {
var sysId= current.assignment_group;
if(!gs.getUser().isMemberOf(sysId)){
current.assigned_to = gs.getUserID();
}
})(current, previous);
Plz Mark my Solution as Accept and Give me thumbs up, if you find it helpful.
Regards,
Samaksh