Message "Comment cannot be viewed by Technicians until work begins on the Requested Item"

dlively
Giga Expert

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

find_real_file.png

1 ACCEPTED SOLUTION

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;

View solution in original post

6 REPLIES 6

Mark Roethof
Tera Patron
Tera Patron

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

LinkedIn

Nithish1
Tera Guru

Hello,

I would copy the message and do the filter script contains in the client script and business rules. This will bring you the exact cs or br.

 

find_real_file.png

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.

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;