- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2017 03:02 PM
Hello;
I created an assignment rule where the condition is depends of the a a variable of the service, but when I try the service, the rule don ´t work.
There is another way to configure an assignment rule where depends of a variable field
Solved! Go to Solution.
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2017 04:13 PM
I had the exact same issue, so I soultioned it a little differently by making use of the script option in the assignment rule.
In the assignment rule condition I just gave the catalog item to which it applies
I made use of script to identify the assignment group
script
if(current.request_item.variable_pool.Test == 'test1') {
current.assignment_group.setDisplayValue("HR Support");
}
else {
if(current.request_item.variable_pool.Test == 'test2') {
current.assignment_group.setDisplayValue("Service Desk");
}
}
The variable (Test) I used has 2 choices
test1 and test2
If I select test1 then assignment group = HR Support
if I select test2 then assignment group = Service Desk
I made a screencast of the changes made and demo of the functionality please follow below link to view it.
ServicenowAssignmentRuleCatalogTask - YouTube
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2017 04:13 PM
I had the exact same issue, so I soultioned it a little differently by making use of the script option in the assignment rule.
In the assignment rule condition I just gave the catalog item to which it applies
I made use of script to identify the assignment group
script
if(current.request_item.variable_pool.Test == 'test1') {
current.assignment_group.setDisplayValue("HR Support");
}
else {
if(current.request_item.variable_pool.Test == 'test2') {
current.assignment_group.setDisplayValue("Service Desk");
}
}
The variable (Test) I used has 2 choices
test1 and test2
If I select test1 then assignment group = HR Support
if I select test2 then assignment group = Service Desk
I made a screencast of the changes made and demo of the functionality please follow below link to view it.
ServicenowAssignmentRuleCatalogTask - YouTube
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2017 08:36 AM
Hi Anil:
Excellent!!! I created the script and it work fine.
thanks a lot for your help.
regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-29-2017 01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2018 07:01 AM
Yes confirmed this work around. Hope that SN will fix this bug. Would be more logical if you could select the condition