Business Rule on First Assignment Group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2018 03:48 AM
Hello Team,
Need help in creating a business rule for the first assignment group when a tickets gets created.
I have created a reference filed and made that filed read only so that it gets freezed once a new ticket gets assigned to the first assignment group.
If i use the conditions for this,it would be
First Assignment Group is empty
AND
State is Assigned
Could you please help me with the Business Rule which needs to be applied for the same criteria so that i can prepare a report based on first assignment group as i am not familiar with the scripting/business rule part.
Thank You in advance.
- Labels:
-
Reporting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2018 04:31 AM
What's u r exact requirement ? can u explain clearly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2018 04:41 AM
I need to create a business rule on " First Assignment Group " which i have created.
The purpose of the business rule is to find out the first assignment group when a new incident gets created and assigned to the first group.
I have created a reference field as First Assignment Group and made that as "Read Only" so that the First Assignment group gets fixed after assignment of the first group.
Could you please help me with the scripting which needs to be implemented in the business rule to get this working ?
Thank You
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2018 04:52 AM
Hi,
As per my undestanding you want to capture very first assignment group in your first assignment group. Write before insert/update br as below ,
Add condition as you mentioned,
First Assignment Group is empty
AND
State changes to Assigned
AND
Assignment group is not empty,
In script
current.u_first_assignment_group = current.assignment_group;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2018 07:37 AM
Just to populate the field as soon as it's assigned? That's actually one of the rare occasions when you don't even need to use an advanced script.
On the conditions, it'd be something like:
Before
on Insert and on Update
If First Assignment Group is Empty AND Assignment Group is NOT empty...
(on the second tab)
Set First Assignment Group SAME AS Assignment Group