Assignment rules not working when using script tab to configure them
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 01:47 PM
Hey, i wrote some assignment rules but discovered that they are case sensitive. So i thought of using the script tab to convert short description entered by user into lower case and they use "contains" to find key words.
But only one assignment rule is triggering every time which has the lowest order. It is not reading the conditions.
But if switch back to using condition builder in "applies to" tab the assignment rules start working fine.
Here is the script i am using in assignment rules
if(current.short_description.toLowerCase().indexOf('coupa')>-1){
current.assignment_group.setDisplayValue("Service desk");
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2024 01:59 PM
Your script should work for setting the assignment group based on the keyword in the short description. Ensure:
- The assignment rule has the correct priority
- The assignment group name matches exactly.
- Add logging for debugging and verify the system logs for issues.
Please mark my response as helpful/accept the solution if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 12:27 AM
The assignment rules are not working as expected. First the big issue is that they are case senistive. On using script I don't know why only the assignment rule with lowest priority is triggering. Others don't seem to run at all.
Is there better alternative than assignment rules?