If the logged in user is a member of the assignment group tagged to the Incident , then these fields
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 07:58 AM - edited 05-08-2024 08:27 AM
If the logged in user is a member of the assignment group tagged to the Incident then these fields should be visible
Customer Name
Phone Number
Email ID
fields should be visible for the assignment group for other group members it shouldn't be visible
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 08:13 AM - edited 05-08-2024 08:21 AM
You can try the below script in display business rule and change the assignment group based on your requirement
(function executeRule(current, previous /*null when async*/) {
g_scratchpad.is_from_service_desk=gs.getUser().isMemberOf('ITSM App-Dev');
})(current, previous);
And you will the client script change the client script as per your requirement
function onLoad() {
//Type appropriate comment here, and begin script below
if(g_scratchpad.is_from_service_desk){
g_form.addInfoMessage("part of group");
}
else{
g_form.addInfoMessage("user is not part of group");
}
}
Thanks and regards
Sai Venkatesh