How to make Impact and urgency field editable on problem form for specific group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 08:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 08:54 PM
Hi @Anupriya_11 ,
I am assuming it is a sc_req_item table with a custom field requested by. Here is how you should configure your ACL.
Here is the script.
answer = false;
if ( gs.getUser().isMemberOf(current.assignment_group.getDisplayValue()) ) {//replace with your group name
answer = true;
}
Here I have assumed that u_requested_by is a custom field representing Requested by. Please update it according to your field name.
Also, with Admin override no separate role checking is needed but still I put the role check for admin in script just in case if you wish to uncheck admin override checkbox.
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2024 02:16 AM
Hi @Anupriya_11
If acl is not working you can try this with display business rule and onload client script as below,
Business Rule:
(function executeRule(current, previous /*null when async*/) {
g_scratchpad.isGroupMemeber =gs.getUser().isMemberOf('Hardware');
})(current, previous);
Onload client script:
function onLoad() {
var groupMem = g_scratchpad.isGroupMemeber;
if (groupMem == true) {
g_form.setReadOnly('urgency', false);
g_form.setReadOnly('impact',false);
} else {
g_form.setReadOnly('urgency', true);
g_form.setReadOnly('impact',true);
}
}
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang