- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 08:42 AM
I am trying to get the assignment group field on an incident to automatically populate based on the given configuration item. I know this has been repeatedly asked and there's documentation on it but I am new to service now and I'm failing to have any success. I'd really appreciate a descriptive walk through on how to do it.
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 08:56 AM
Jonny,
Create a Client script like this:
Name : Populate assignment Group
Type : onChange
Field Name : cmdb_ci
Script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '')
return;
var ref = g_form.getReference('cmdb_ci');
g_form.setValue('assignmnet_group', ref.support_group); // support_group is the name of the field on cmdb from which you want to get the group
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 09:19 AM
Thanks Miriam, that is simple and makes perfect sense. For some reason, it still isn't working. The application field in the top right of the business rule is set to a custom application, and it is gray (I can't change it.) I think this might be the problem but I don't know why I can't set it to global.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 09:21 AM
Jonny,
This might be because you are not on Global Application. You need to change it to global.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 09:26 AM
Yes, try changing the scope to global.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2015 11:52 AM
How? The application field is grayed out and I can't change it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2015 02:37 AM
Click the cog wheel to the far right, to open the settings. In there you should have a choice to change the scope/application you are working in.