- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2024 04:33 AM
Requirement:
The system shall show the assignment group's name and contact details responsible for handling each request or incident at the RITM level.
Acceptance Criteria:
The name of the assignment group is displayed next to each RITM in "My Records."
Additional contact information (Email) for the assignment group is accessible if needed.
Solved! Go to Solution.
- 1,150 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-2024 04:56 AM
To Show assignment group name and contact details for each RITM in the "My Records" section of ServiceNow. Try Following the Steps:
- Display Assignment Group Name:
- Modify UI policies or forms to add a field that displays the assignment group name next to each RITM.
- Access to Contact Information:
- Provide additional contact details (e.g., email) via a related link or tooltip when hovering over or clicking the assignment group name.
Implementation Steps
- Modify RITM Form/View:
- Add Assignment Group Field: Use the form designer to include the assignment group field.
- Script for Assignment Group: Implement a script in the workflow to set the assignment group based on specific criteria.
- Displaying Information in "My Records":
- UI Configuration: Modify the "My Records" UI to include a column for the assignment group name.
- Accessing Contact Information:
- Create a Contact Information Field: Add a field for the assignment group's contact details in the RITM record.
- Display Logic: Use client scripts to enable contact detail access via hover or click actions.
Thanks, and Regards
Vishaal
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
09-29-2024 04:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2024 04:24 AM
Hi @Sai Krishna6147 ,
If you want to Customize a Widget In service portal You need Servier side script , HTML, CSS You can use below script -Server Side Script
var item = {};
var assignmentGroup=[];
data.table = gr.getTableName();
data.sys_id = gr.getUniqueValue();
var tab=gr.getTableName();
if(tab == ('incident')){
var inc = new GlideRecord('incident');
inc.addQuery("active",'true');
inc.addQuery("sys_id", data.sys_id);
inc.query();
while (inc.next()) {
item.assignment_group = inc.assignment_group.getDisplayValue();
assignmentGroup = inc.assignment_group.getRefRecord();
if (assignmentGroup.isValidRecord()) {
//console.log(assignmentGroup.getValue('u_contact'));
item.email = assignmentGroup.getValue('u_contact');
} else {
item.email = 'No Email Found';
}
tasks.push(item);
}
}
if( tab == 'sc_req_item'){
var tsk = new GlideRecord('sc_task');
tsk.addQuery("active",true);
tsk.addQuery("request_item", data.sys_id);
tsk.query();
while (tsk.next()) {
item.assignment_group = tsk.assignment_group.getDisplayValue();
assignmentGroup = tsk.assignment_group.getRefRecord();
if (assignmentGroup.isValidRecord()) {
item.email = assignmentGroup.getValue('u_contact');
} else {
item.email = 'No Email Found';
}
tasks.push(item);
}
}
data.tskFields = tasks;
// console.log("ss" + data.tskFields[0].item.assignment_group);
})();
//})();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 12:01 AM
Add Assignment Group Field to RITM Form:
Go to the RITM form designer.
Add the “Assignment Group” field if it’s not already there.
Display Assignment Group in “My Records”:
Customize the “My Records” list layout to include the “Assignment Group” field.
Fetch and Display Email:
Create a new field for the assignment group’s email.
Thank you.