- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 11:17 PM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2024 11:23 PM
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();
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 02:08 AM
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]
****************************************************************************************************************