- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:23 AM
Hi Experts,
I have created a field on incident form “Previous assignment group” which captures the value of previous assignment group. I have written below business rule to populate it but it’s working only if the variable field type is string.
current.u_previous_assignment_group = previous.assignment_group.getDisplayValue();
We want to use this field for report so that user can fetch it dynamically but it does not work if we keep the field type as reference.
Please help.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:25 AM
@Ankita Gupte Please update your script as follows.
current.u_previous_assignment_group = previous.assignment_group+'';
//u_previous_assignment_group should be a reference field referring to sys_user_group.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 03:25 AM
@Ankita Gupte Please update your script as follows.
current.u_previous_assignment_group = previous.assignment_group+'';
//u_previous_assignment_group should be a reference field referring to sys_user_group.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 11:12 PM
Hi Sandeep, Hope you are doing well!
I have modified the script as below since I want to get only the first assignment group i.e. the assignment group used while creating the incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2024 10:41 AM
Thank you Sandeep. It working fine 😊
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 11:13 PM
Hi Sandeep, Hope you are doing well!
I have modified the script as below since I want to get only the first assignment group i.e. the assignment group used while creating the incident.