The CreatorCon Call for Content is officially open! Get started here.

Articles in Draft stage

gopunkutty
Kilo Contributor

Hi all,

 

I wanted to know what can be done for the articles which are in draft stage. However, the authors are not available to publish the article

3 REPLIES 3

RobNikli
Tera Contributor

One method that comes to mind is to create a Flow to automatically change the author of draft knowledge articles and either use a hardcoded fallback user, like the Knowledge Manager or a lookup based on the article category or assignment group. Something like;

var fallbackUser = new GlideRecord('sys_user');
fallbackUser.get('user_name', 'knowledge.manager'); // replace with actual username

Then, update the knowledge article, notify the new author and optionally, you could use the Create Record in the activity log or a custom table to include the article ID, old author, new author and a timestamp.

M Iftikhar
Giga Sage

Hi @gopunkutty,

Write a fix Script "Retire Draft Article":

var kbArticle = new GlideRecord('kb_knowledge');
kbArticle.addQuery('workflow_state','draft');
kbArticle.setValue('workflow_state','retired');
kbArticle.setWorkflow(false);
kbArticle.updateMultiple();

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.

Nikhil Bajaj9
Tera Sage
Tera Sage

Hi @gopunkutty ,

 

Admin can publish it or Knowledge Manager can publish it. It depends on the associated workflow as well or can be done manually.

 

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj

ServiceNow Rising Star-2025