The Latest filed is looks false even there is article in Published.

SatishSuray
Tera Contributor

The Latest filed is looks false even there is article in Published. Also, there is no latest version.
Because of this the retire button not visible to knowledge_manager (we have added this role to the ui action)  

 

Condition of UI action : !(new KBCommon().isStackNameDialog()) && (new KBKnowledge().canRetire(current)) && (new KBCommon().canProvideReplacementArticle()) && (current.sys_class_name != 'kb_knowledge_block') && (gs.hasRole('knowledge_manager'))

 

Kindly help how this updating.

SatishSuray_0-1785995307986.png

 



1 REPLY 1

Suryansh Verma
Tera Guru

@SatishSuray 

 

Published and Latest are separate fields. A published article can have Latest=false when a newer Draft or Review version exists. However, if the Article Versions related list shows only one version and no record have Latest=true, the versioning data is inconsistent. Check the article_id, Knowledge Management Advanced plugin, glide.knowman.versioning.enabled, OOTB versioning Business Rules, and any custom import or update scripts. Do not modify the Retire UI Action to bypass KBKnowledge().canRetire(current). Repair the version chain so exactly one record for each article_id has Latest=true,the Retire action should then appear for an authorized knowledge manager.