- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 01:23 PM
I have a Business Rule that sets the Priority to a Sev 3 on incident creation. I need users with a specific role to not be affected by this rule. If someone can help me find the piece I am missing I would appreciate it.
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 05:37 AM
Hi,
You can add condition in your business rule as below:
Please note: not(!) symbol will always be used at start of function for business rules condition then only it will work.
!gs.hasRole('role_name')
Thanks,
Sujata Vishwakarma
Please mark if you find this helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2018 01:30 PM
You can add a condition in the business rule
gs.getUser().getRole('myrole')!='true'
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 06:16 AM
Change 'myrole' to the actual role and this means that the BR applies if they do not have the role selected? Just want to double check since my scripting is still al little weak.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2018 06:13 AM
Forgive me scripting is something I am starting to learn, The statement basically means this rule does not apply to the admin role? Is that correct?