Knowledge Base Review System

Not applicable

Hi,

I was wondering if Service-Now has a review system in place for knowledge base articles?

So, if, after 6 months, an article has not been updated, it can be flagged for review.

Thanks,

Gail 🙂

10 REPLIES 10

guy_yedwab
Kilo Guru

This document talks about the out-of-box Knowledge Base submission system:

http://wiki.service-now.com/index.php?title=Using_the_Knowledge_Base_Submission_Workflow

For the review system you describe, the article mentions duplicating and then modifying the Incident Autoclose Business rule, so that after six months it changes the state to "Review".


Not applicable

Thanks for that guy.yedwab 🙂

Got the code working!

var kb = new GlideRecord('kb_knowledge')
kb.addQuery('sys_updated_on', '>', gs.daysAgoStart(180))
kb.query();

while(kb.next()) {
kb.workflow_state = 'review';
kb.update();
}


andysmith
Kilo Explorer

Hi Gail,

I am relatively new to Service Now and I am trying to setup a similiar script. I would like to set the script up to review documents that haven't been updated in three months.

Your script makes sense but where did you write it? Did you create a Business Rule and add the script to the Business Rule script windown and then create an event to run along side the Business Rule?

Am I right in thinkint that the Knowledge Base Submission Workflow doesn't have to be working for the script to work too?

Many Thanks in advance

Andy


coolboy
Mega Expert

@ andy you can run this script in script background that will work but that would be manual activity instead you can use schedule job script to run as per ur req.
Business rule are use full when some database action is performed on table like insert/update/delete/query but in this there is no such action so schdeule job will work perfect.