- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2015 04:23 AM
Hello! I feel a little stuck with a business rule which does not seem to be running correctly, and would appreciate your help.
My objective was to create a BS on Incident form that would default Assignment Group based on the role Opened by user had. I did create a role called itil_servicedesk and assigned to certain groups. I also created the following BS rule:
However, once I go on to test the functionality works only for me as an admin (though I am dont have itil_servicedesk) role, but does not work for the groups that have the itil_servicedesk role. Any ideas why? I would like it to work only for itil_servicedesk role and it should not work for admins.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2015 06:25 AM
Ok..I've constructed an example in the below demo link where it is working. Please check for reference.
Business rule name : check role
https://demo007.service-now.com/login.do
Username : admin
Password : admin
Steps for testing : Impersonate as a user "Abel tuter"
Basically it will set the assignment group to "Database" if the opened by has the group "Cab approval".
For demo purpose I've made "Abel tuter" the member of the group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2015 04:32 AM
You may need to remove the Role Conditions because they will check for the logged in user roles but you want to check roles for the opened by user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2015 04:49 AM
One note: admins inherit all roles, so you will have a difficult time restricting it from admins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2015 05:04 AM
Also, User with roles calls getRoledUsers(), which would be anyone with roles. You would be better off, I think, making your own script include, dynamic option, and calling it. I will try to mock something up... see what I can come up with.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2015 05:20 AM
Yes, I figured that admin will get the BS as they inherit all roles, but this is less of an issue rather than BS working fine for admins but not working at all for those having the role.
You are probably right about writing script include for this. I'll be waiting for your suggestion mock-up!