On Service Portal While reject, when we enter comments in One RITM. It is reflection all other RITM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 07:46 AM
Hi Team
Requirement = When we reject RITM. Comments should be mandatory.
I have done changes it is working as expected in Service Portal Approval Form View. But It is working in Service Portal List View. Rather when we enter comments in One RITM. It is reflection all other RITM on Service Portal List View Approval Records.
Labels:
- Labels:
-
Service Catalog
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 08:25 AM
you must have written some custom logic for this.
In that logic possibly it's not able to query the particular record and is updating every record
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2024 09:41 AM
In Server side script I have updated (which is bold letters).
if (input.op == 'approved' || input.op == 'rejected') {
if (input.op == 'approved' || input.op == 'rejected') {
var app = new GlideRecord("sysapproval_approver");
if (app.get(input.target)) {
var isMine = gs.hasRole("approval_admin") || (gs.hasRole("approver_user") && isApprovalMine(app));
if (isMine) {
app.state = input.op;
if (input.comment){
app.comments = input.comment;
}
app.update();
if (currentPage > 0 && !input.pagination.hasNext && input.approvals.length == 1) {
currentPage--;
initRow = (currentPage * maxNumberOfItemsInTheList);
lastRow = initRow + ma
Could you please check and let me know What I need to change
Could you please check and let me know What I need to change