Is it possible to Retire a KB article that is in 'Review' workflow state?

subhadeep1618
Tera Guru

Hello Everyone,

I would need a quick help and/or clarification, regarding a customer requirement that I have recently received.

We have around 200 KB articles which are in 'Review' state since more than 1 year.

Customer wants us to retire these KB articles.

But the UI action of Retire is only available for published articles, not for 'reviewed' articles'.

So, here is my question: is there any way to retire KB articles that are in review state?

Please let me know.

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron

Hi @subhadeep1618 you can retire those articles through background script:

script:

var kb = new GlideRecord('kb_knowledge');
kb.addEncodedQuery('workflow_state=review');//filter by review
kb.query();
while(kb.next())
{
kb.workflow_state = 'retired';// set to retire
kb.update();
}

View solution in original post

5 REPLIES 5

Hi @subhadeep1618 

 

NO , it is not best practice, as approval is already triggered and now we need to retried the KB. 

 

Script is option but gain, depend on case to case.