- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2019 06:25 AM
Hi,
I have an assignment rule for the incident table and a Record Producer to create Service Desk incidents. The idea is that if a custom variable value (current.variables.normal_user_yesno) in my Record Producer is "Yes" then to assign a group in the assignment rule OTHERWISE leave the assignment group field empty so other assignment rules can still try to populate the field.
For some reason it is not working, when the answer is "Yes" then I get the right assignment group assigned to the ticket, but when the answer is "No" the assignment group field in the ticket stay empty and none of the other assignment rules seem to work.
What do I need to do in an assignment rule to leave the field empty if the custom variable answer is "No"?
Code:
if ( current.variables.normal_user_yesno.toString() == 'Yes' ){
current.assignment_group = "9c2f3964db760f008f9f3c00ad961948";
}else{
current.assignment_group = "";
}
BTW, the "Group" field in the assignment rule is empty as well as the "user" field. I had generic Conditions in the assignment rule filter because the only thing that should make my assignment rule assign a group is when the variable value is "Yes"
Thank you
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2019 08:36 AM
Your requirement best suits in script field on Record Producer form and use the below script
if ( producer.normal_user_yesno.toString() == 'Yes' ){
current.assignment_group = "9c2f3964db760f008f9f3c00ad961948";
}else{
current.assignment_group = "";
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-28-2021 02:57 PM
Did you ever get this figured out? Facing the exact same issue.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-04-2019 08:36 AM