- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 11:06 AM
Is there an Assignment Rule log that I can use to determine which Assignment Rule set the Assignment Group on a Task?
Solved! Go to Solution.
- Labels:
-
Multiple Versions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 11:26 AM
Hi,
I don't believe there's an assignment rule log, but you can check the audit trail of the record by using the contextual menu while looking at the record and choosing: History > List.
From here, you can sort things by date/time and then look at the assignment rule field (as well as other field values). Then, review your assignment rules to see which one would have been applied given what you've reviewed.
Keep in mind that:
- The assignment rule is the first rule that matches the table and conditions. If more than one assignment rule matches the conditions, only the rule with the lowest order value runs.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2022 11:26 AM
Hi,
I don't believe there's an assignment rule log, but you can check the audit trail of the record by using the contextual menu while looking at the record and choosing: History > List.
From here, you can sort things by date/time and then look at the assignment rule field (as well as other field values). Then, review your assignment rules to see which one would have been applied given what you've reviewed.
Keep in mind that:
- The assignment rule is the first rule that matches the table and conditions. If more than one assignment rule matches the conditions, only the rule with the lowest order value runs.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2022 11:54 AM
Hmmm... I guess I need to mark the answer as Correct but not Helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2024 07:39 AM
Here is a script that finds the first matching Assignment Rule.
To use this script create a Form Link UI Action named "Test Assignment Rules" on the Task table, and paste in the code below. It does not actually find the Assignment Rule that was applied. Instead it finds the Assignment Rule that would be applied based on the current values in the record. If none of the critical fields in the record have been changed since the record was inserted, then the answer should be the same.
// This UI Action displays the name of the first matching Assignment Rule
var message = 'No matching Assignment Rule found';
var grRule = new GlideRecord('sysrule_assignment');
grRule.addQuery('table', current.getTableName());
grRule.addActiveQuery();
grRule.orderBy('order');
grRule.query();
while (grRule.next()) {
if (GlideFilter.checkRecord(current, grRule.condition)) {
message = gs.getMessage('{2} matched rule {0}: <a href="' + grRule.getLink(false) + '" target="_blank">{1}</a>', [grRule.order, grRule.name, current.number]);
break;
}
}
gs.addInfoMessage(message);
action.setRedirectURL(current);