- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2017 07:45 AM
I suspect (hope) that this is a simple on. I need to include assignment group and assigned to on the Service Desk New Call form when the call will go to an Incident. I used the setup on Incident as a guide. I have everything okay for assignment group. Where I'm running into a problem is limiting the list of individual assignees to members of the assignment group. As far as I can tell I've duplicated the setup from incident, but when I click on the magnifying glass for assigned to in the New Call form I get a lot more data than I should.
Any suggestions would be greatly appreciated.
TIA,
John
:{)
Helpful and Correct tags are appreciated and help others to find information faster
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2019 02:01 PM
This was resolved via pretty standard configuration. When I asked the question I was very new to ServiceNow. When the community portal was changed I couldn't make my own answer correct. The underlying issue was that adding assignment group and assigned to into the new_call form had those two named as user fields. Once I understood that piece, the rest was simple
:{)
Helpful and Correct tags are appreciated and help others to find information faster
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2019 07:32 AM
In our organization, users may have multiple roles, yet they are assigned to one department. We want to select the assignment group that has the same name as the department. To do that we have a global script that locates the assignment group that has the same name as the department that we re-use regularly along with assignment group manager:
var GlobalLibrary = Class.create();
GlobalLibrary.prototype = Object.extendsObject(AbstractAjaxProcessor, {
//----------------------------------------------------------------------------------------------------
getAssignmentGroupManager: function(sys_idOfUser)
//----------------------------------------------------------------------------------------------------
{
var user=new GlideRecord('sys_user');
user.get('sys_id',sys_idOfUser);
var group= new GlideRecord('sys_user_group');
group.get('name', user.department.name);
return group.manager;
},
//----------------------------------------------------------------------------------------------------
getAssignmentGroupFromDepartment: function(sys_idOfUser)
//find the assignment group by looking up the department of a user name
// ----------------------------------------------------------------------------------------------------
{
var user=new GlideRecord('sys_user');
user.get('sys_id',sys_idOfUser);
var group= new GlideRecord('sys_user_group');
group.get('name', user.department.name);
return group.sys_id;
},
type: 'GlobalLibrary'
});
So, when you need to only find people in the assignment group that reciprogates to department name of the current user use the following in default value of assignment_group field:
javascript:new global.GlobalLibrary().getAssignmentGroupFromDepartment(current.assigned_to);
Once you get the assignment group, the drop-down list for users in the assigned_to field, use as dependent to assignment_group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2019 02:01 PM
This was resolved via pretty standard configuration. When I asked the question I was very new to ServiceNow. When the community portal was changed I couldn't make my own answer correct. The underlying issue was that adding assignment group and assigned to into the new_call form had those two named as user fields. Once I understood that piece, the rest was simple
:{)
Helpful and Correct tags are appreciated and help others to find information faster