View Latest Version in Knowledge V3

12uy
Mega Sage

12uy_0-1708570699526.png

12uy_2-1708570785552.png

 

12uy_1-1708570731734.png

Hi!
How can I reorder this version in knowledge? This causes my knowledge v3 to be unable to display the final version. I need a solution that can handle this problem.

Thanks!

1 ACCEPTED SOLUTION

12uy
Mega Sage

Thank you everyone!
After reviewing the code again, I found a silly mistake: missing the underscore character at the beginning of the
initialize function. Everything is working fine now.

Before:

12uy_2-1708940426623.png

After:

12uy_3-1708940450968.png

12uy_4-1708940453964.png

 

View solution in original post

3 REPLIES 3

Community Alums
Not applicable

Hi @12uy ,

As mentioned by the product owner in this community article, 
https://community.servicenow.com/community?id=community_question&sys_id=e1fb7986db655b44fc5b7a9e0f96... 

'The current behavior is expected by design because there are requirements from other customers to preserve the link to the original article version (this is, in fact, a KCS - Knowledge Centered Support - requirement).' 

If a new article is published, then the older version will be having an info message that is displayed at the top of the article that would point to the newer version. 

As mentioned in the community article above, the Enhancement request has been created to our product team asking them to consider enabling the redirect behavior in the future releases. 


However, there are some ways to achieve the desired behavior. 

1. Customize the article view (kb_view) page to issue a redirect to the latest version, if available. This can be checked by querying the kb_knowledge table with the article number, and check the version field of the records returned to find out the latest version. 

However, if the link is pointing to the 'kb_knowledge' form instead of the article view page, then set up redirection to the latest version with the help of Processors (Please refer to this community article, answered by 'LucasVieites' 
https://community.servicenow.com/community?id=community_question&sys_id=b48ff2e9db58dbc01dcaf3231f96... 

2. Solve this at the source, i.e. when a new version of an article is created/published, have a custom business rule to find out if this article is linked to in any custom application. If yes, then go ahead and update the references to the newly created article version record. 

 

Aman Kumar S
Kilo Patron

Hi @12uy 

Navigate to the portal, and enable instance option and mark "Redirect to latest article" as true.

It will automatically bring users to latest article.

For more details you can review below SN support articles:

Versioning in Knowledge Management – FAQ 

How to redirect a knowledge article always to the latest version? 

 

Best Regards
Aman Kumar

12uy
Mega Sage

Thank you everyone!
After reviewing the code again, I found a silly mistake: missing the underscore character at the beginning of the
initialize function. Everything is working fine now.

Before:

12uy_2-1708940426623.png

After:

12uy_3-1708940450968.png

12uy_4-1708940453964.png