We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Filtering the knowledge base

mduluk
Giga Expert

Is there a way to filter the knowledge base by ownership group.   We have a standard work category for our team and I would love to put a link that would show any articles that the topic standard work and the ownership group is one of my teams.   I know I can do it if I search the published list, but I would like to have it return the results in the standard knowledge base page.

1 ACCEPTED SOLUTION

mduluk
Giga Expert

So I ended up copying the kb_list ui page to kb_sw_list, and added an additional encoded query for the topic and ownership group.   Then I made a new module for My Groups Standard Work and made it a url link to kb_sw_list.do.



kb.addQuery('active', 'true');


              var qc1 = kb.addQuery('workflow_state', 'published');kb.addEncodedQuery('u_ownership_group=javascript:getMyGroups()^topic=Standard Work');


              if ('$[jvar_show_unpublished]' == 'true' $[AND] gs.hasRole(gs.getProperty('glide.knowman.section.view_roles.review', 'itil,knowledge,knowledge_admin')))


                      qc1.addOrCondition('workflow_state', 'review');


View solution in original post

5 REPLIES 5

mduluk
Giga Expert

So I ended up copying the kb_list ui page to kb_sw_list, and added an additional encoded query for the topic and ownership group.   Then I made a new module for My Groups Standard Work and made it a url link to kb_sw_list.do.



kb.addQuery('active', 'true');


              var qc1 = kb.addQuery('workflow_state', 'published');kb.addEncodedQuery('u_ownership_group=javascript:getMyGroups()^topic=Standard Work');


              if ('$[jvar_show_unpublished]' == 'true' $[AND] gs.hasRole(gs.getProperty('glide.knowman.section.view_roles.review', 'itil,knowledge,knowledge_admin')))


                      qc1.addOrCondition('workflow_state', 'review');