Knowledge Base categories not showing on knowledge Homepage

marcomanimtim
Tera Contributor

I have created a number of new knowledge bases and has transferred the knowledge articles over from the old Knowledge base via a background script.

(All articles where stored in one single KB then will be assigned to specified knowledge bases according to the roles. The background script queries the kb_knowledge table, identifies the roles associated to that article then assign it to the newly created knowledge bases)

Upon going to Self-Service>Knowledge>Home button then selecting the New Knowledge Base I am unable to see the categories that where existing before on the old KB. It normally should appear on the left hand pane and on the tab of Categories.

I tried to replicate the Knowledge Categories form the old knowledge Base but im still having the issue. I'm not sure if this is a known issue on Knowledge V3 or it has something to do with my background script that assigns the articles to a new Knowledge Base

Version: Jakarta

KB version: 3

Background Script:

var gr = new GlideRecord('kb_knowledge');

gr.query();

gs.print(gr.getRowCount());

while(gr.next())

{

gr.autoSysFields(false);

gr.setWorkflow(false);

if (gr.roles.indexOf('itil_admin') != -1)

{

gr.kb_knowledge_base = '5b965b5e4f714b40c5463e1ca310c70f'; //sys_id of itil_admin KB

}

else if (gr.roles.indexOf('itil') != -1)

{

gr.kb_knowledge_base = '7a26d35e4f714b40c5463e1ca310c727'; //sys_id of itil KB

}

else if (gr.roles.indexOf('kb_ops') != -1)

{

gr.kb_knowledge_base = 'a476d35e4f714b40c5463e1ca310c72b'; //sys_id of kb_ops

}

else if (gr.roles.indexOf('kb_tier2') != -1)

{

gr.kb_knowledge_base = '0f861b5e4f714b40c5463e1ca310c707'; //sys_id of kb_tier2

}

else

{

gr.kb_knowledge_base = 'edd65f5e4f714b40c5463e1ca310c751'; //sys_id of public

}

gr.update();

}

1 REPLY 1

Slawek_Radziewi
Kilo Sage

Hi



Have you moved categories from old KB to new one? They have to be moved separately. Unfortunately articles lost categories during migration.



I did not used script but I did:


1. Move categories from old to new KB


2. Move articles from old to new KB


3. Assign categories again manually to articles.



Maybe creating at first exactly the same categories in new KB and then moving articles with placing into categories in new KB will help you avoid losing categories in articles.