- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2019 07:15 AM
Getting this message on INC0080649, but there is nothing on the "Related Records" tab. Where is this message coming from and how can I eliminate it?
Thank you,
Donna Lively
Solved! Go to Solution.
- Labels:
-
Incident Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2019 07:50 AM
Hello,
you can just comment that line of code by adding '//' before that line. see below code.
function queueAssigneeEvent() {
var assigneeArr = [];
var assignGroupArr = [];
//Query for non-pending sc_task records
var catTsk = new GlideRecord('sc_task');
catTsk.addQuery('request_item', current.sys_id);
catTsk.addQuery('state', '!=', -5);
catTsk.query();
if (!catTsk.hasNext()) {
//gs.addInfoMessage(gs.getMessage('Comment cannot be viewed by technicians until work begins on the Requested Item'));
return;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2019 07:25 AM
Hi there,
Have a look at the business rules or client scripts on your incident table. Which one is creating this addInfoMessage?
If my answer helped you in any way, please then mark it as helpful.
Kind regards,
Mark
---
LinkedIn
Community article list
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2019 07:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2019 07:47 AM
Nithish,
I found the br (see below). I am not very good at scripting so can you show me how to remove this comment without messing anything up?
function queueAssigneeEvent() {
var assigneeArr = [];
var assignGroupArr = [];
//Query for non-pending sc_task records
var catTsk = new GlideRecord('sc_task');
catTsk.addQuery('request_item', current.sys_id);
catTsk.addQuery('state', '!=', -5);
catTsk.query();
if (!catTsk.hasNext()) {
gs.addInfoMessage(gs.getMessage('Comment cannot be viewed by technicians until work begins on the Requested Item'));
return;
Thank you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2019 07:50 AM
Hello,
you can just comment that line of code by adding '//' before that line. see below code.
function queueAssigneeEvent() {
var assigneeArr = [];
var assignGroupArr = [];
//Query for non-pending sc_task records
var catTsk = new GlideRecord('sc_task');
catTsk.addQuery('request_item', current.sys_id);
catTsk.addQuery('state', '!=', -5);
catTsk.query();
if (!catTsk.hasNext()) {
//gs.addInfoMessage(gs.getMessage('Comment cannot be viewed by technicians until work begins on the Requested Item'));
return;