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.


Please mark this post as a solution and also as helpful, if this resolves your issue or query.

Thanks,
Subhadeep Ghosh.
1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
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();
}

Regards
Harish

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.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************