- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 02:37 PM
Hello all,
I was curious if there is a simple way to, instead of having CIs relate to a single user, if they would relate to a group.
My thought process is that if there is a service disruption and an incident is logged against ServerXYZ or BusinessServiceABC, it would be nice to have predefined groups that manage ServerXYZ and the Business Service. Instead of just having one persons name on it, and getting user.parent.group() if we could just take the ci.assignment_group() and set that to be the incident.assignment_group().
Best,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 03:30 PM
yeah, I figured that one out.
I am working on trying to make the assignment group of the inc snap to the assignment group of the ci now via client script + script include as per another users findings ...
Set Assignment Group based on Configuration Item
its not working out so far though, my answer is coming back as null
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '' || g_form.getValue("assignment_group") != "") {
alert("bail");
return;
}
//Type appropriate comment here, and begin script below
alert("calling");
var ga = new GlideAjax("u_incidentFunctions");
ga.addParam("sysparm_name","u_getActiveGroup");
ga.addParam("sysparm_ci",newValue.toString());
alert(ga);
ga.getXMLAnswer(parseAnswer);
alert("finished");
function parseAnswer(answer) {
alert("perf action");
alert(answer);
g_form.setValue("assignment_group", answer);
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 02:50 PM
Wow...
System Definition > CMDB_CI > Assignment Group > Display = false -_-
*pretty* sure this is my issue ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 02:58 PM
It wasn't that either ..
It ended up being (so far) Configuration > Base Items > All > (navigate to CI I made / open up) > Form Designer > add Assignment Group field > save > populate

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 03:26 PM
The cmdb_ci table already has an assignment_group field. Therefor, all child classes also have this field. All you need to do is place it on the form, list, etc. where you wish to use it. You can do this with form layout or form designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2017 03:30 PM
yeah, I figured that one out.
I am working on trying to make the assignment group of the inc snap to the assignment group of the ci now via client script + script include as per another users findings ...
Set Assignment Group based on Configuration Item
its not working out so far though, my answer is coming back as null
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '' || g_form.getValue("assignment_group") != "") {
alert("bail");
return;
}
//Type appropriate comment here, and begin script below
alert("calling");
var ga = new GlideAjax("u_incidentFunctions");
ga.addParam("sysparm_name","u_getActiveGroup");
ga.addParam("sysparm_ci",newValue.toString());
alert(ga);
ga.getXMLAnswer(parseAnswer);
alert("finished");
function parseAnswer(answer) {
alert("perf action");
alert(answer);
g_form.setValue("assignment_group", answer);
}
}