- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 10:01 AM
I need your expertise here.
I have a requirement to allow only the major incident support group users to log p1 incidents meaning the rest of the users should not see the urgency and impact p1. The code below doesn't work instead it hides p1 for impact and urgency for the major incident support group. What did I miss?
see business rule below i created
(function executeRule(current, previous /*null when async*/) {
g_scratchpad.grp = gs.getUser().isMemberOf('major incident support');
})(current, previous);
created a client script
function onLoad() { var usr = g_user.getUserID(); if (!g_scratchpad.grp) { g_form.removeOption("impact", '1'); g_form.removeOption("urgency", '1'); } }
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 01:38 AM
Hi @Carol2 ,
Business rule type will be display business rule not before business rule which you are using.
Check for the group name is correct.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 10:47 AM
Hi @Carol2 ,
I already posted the inputs in my previous post with you,
Create new display Business rule with script below
Create onload client script with below script,
Output: As i am admin not part of Major incident management group i am not able to select impact and urgency as High so priority will not able to submit to P1- High incident.
Now i impersonated as Alene Rabeck who is part of Major incident management group they can see impact and urgency as 1-High, able to submit p1 incident.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 11:23 PM
Not sure what I am missing the urgency 1 and impact 1 is hidden for everyone. Check below steps:
Business rule
Client script
Group details
Impersonated Andre Och from the application development group impact/urgency 1 is hidden
Me as admin urgency/impact 1 hidden/removed
Regards
Ca
Regards
Ca
Impersonated Andre Och since he is part of the "application development" group the p1 priority and urgency is not showing which is not correct.
Me as admin also cannot see the impact/urgency p1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 01:38 AM
Hi @Carol2 ,
Business rule type will be display business rule not before business rule which you are using.
Check for the group name is correct.
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 01:44 AM