var tsk = new GlideRecord(‘sc_task’);
tsk.addQuery(‘request_item’, current.sys_id);
tsk.addActiveQuery();
tsk.query();
if(tsk.next()){
answer = false;
}
else{
answer = true;
}
var tsk = new GlideRecord(‘sc_task’);
tsk.addQuery(‘request_item’, current.sys_id);
tsk.addActiveQuery();
tsk.query();
if(tsk.next()){
answer = false;
}
else{
answer = true;
}