- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 05:21 PM
Hi There! I'm new to servicenow and trying to learn.
I would like to create a "Previous Assigned Groups" field in Incident View so that it can have a one look clear cut of all the assigned groups which was assigned before in the Incident View. This is also able to be exported out in Excel together with the incidents.
Something like this:
If possible, please give me detailed steps please. Thank you so much.
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 07:58 PM
Hi,
You can achieve this using business rule or Flow.
1. Create a string field.
2. Create a business rule which should run when Assignment Group changes.
Use below configuration.
And use below script logic:
(function executeRule(current, previous /*null when async*/) {
if(current.u_assignment_gorups !=''){ //use name of your field instaed of u_assignment_gorups
current.u_assignment_gorups = current.u_assignment_gorups+'>'+current.assignment_group.getDisplayValue();
}else{
current.u_assignment_gorups = current.assignment_group.getDisplayValue();
}
})(current, previous);
Thanks,
Anil Lande
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 08:01 PM
Please correct if any typo errors and use your field names as per your configurations.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2022 11:07 PM
WORKS SO PERFECTLY. THANK YOU SO MUCH