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

Display message in kb_view for retired articles

gnewuser
Tera Contributor

 

When a user tries to find a retired knowledge article using global search, the retired article still displays in the knowledge homepage. 

 

If a user somehow gets to this page either through saved bookmark or link , and if the article is retired, I would like to display a message that the article is retired so they should not refer this article.

 

I went to the Kb_view but I am not very comfortable modifying Jellyscript. Is there a way to include the condtion if the current's workflow state is retired, display the message?

 

How do I do it?

 

Thanks

 

5 REPLIES 5

Neel Patel
Tera Guru

How about adding a message on top of the retired KB in bold red

THIS KB is No longer being supported, Please refer to this KB instead.

Thanks but would that show in the view mode of the KA article?

 

 

That is a great idea but that shows up only in the edit mode of the article. I modified the business rule and it worked. but not in In kb_view page of the article, it doesn't work

M Ismail
Tera Guru

Hi @gnewuser,

Please checkout this 
https://www.servicenow.com/community/developer-forum/addinfomessage-on-knowledge-article-view/m-p/17...

Please hit helpful and accept this as a solution if it solved your problem.
Thank you!