How to add related list to Knowledge Article kb_view

txag08
Tera Contributor

I'm trying to add a related list to a knowledge article in kb_view. I've successfully created and added it to the kb_knowledge form, but is there a way to make it show up in the kb_view form?

1 ACCEPTED SOLUTION

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

@Patrick, kb_view is a UI page used by Knowledge to display the knowledge articles.  Your instructions unfortunately don't apply to UI pages.

 

@txag08, unfortunately this is somewhat complex coding given that the KB articles are displayed using the kb_view UI page and a bunch of embedded UI Macros.  kb_view uses the kb_view_common_footer UI Macro which then uses the kb_attached_tasks_v3 macro that displays a list of related tasks to the KB article.  You can view this code as an out of the box example on how this can be done.  It doesn't display like a related list in the standard platform UI.

 

Please mark this post as helpful if applicable so others viewing can benefit.

View solution in original post

7 REPLIES 7

My apologies. kb_view is not an OOB view but a UI page. Here is a thread with more information and a useful jelly snippet which can display incidents when placed in the desired location on the ui page.

https://community.servicenow.com/community?id=community_question&sys_id=dc2bc3eddb5cdbc01dcaf3231f96...

Michael Ritchie
ServiceNow Employee
ServiceNow Employee

@Patrick, kb_view is a UI page used by Knowledge to display the knowledge articles.  Your instructions unfortunately don't apply to UI pages.

 

@txag08, unfortunately this is somewhat complex coding given that the KB articles are displayed using the kb_view UI page and a bunch of embedded UI Macros.  kb_view uses the kb_view_common_footer UI Macro which then uses the kb_attached_tasks_v3 macro that displays a list of related tasks to the KB article.  You can view this code as an out of the box example on how this can be done.  It doesn't display like a related list in the standard platform UI.

 

Please mark this post as helpful if applicable so others viewing can benefit.

Thank you so much. This was the breakthrough I needed! I was able to copy kb_attached_tasks_v3 to create a list of tags and put it right on the kb_view page. It looks great.