Display message in kb_view for retired articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 02:05 PM - edited 04-10-2024 08:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 04:16 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 06:11 AM
Thanks but would that show in the view mode of the KA article?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2024 04:40 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 12:09 AM
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!