How to configure a Knowledgebase list widget on the SC categories page

Baggies
Kilo Guru

I am pretty new to configuring the portal and widgets. Basic knowledge from course and documentation.
What I am trying to do is create a Knowledgebase widget on the Service Catalog page.

The requirement is to create a list of kb articles, but based on  the category or subcategory of the Service Request catalog items. Can this list widget be filtered based on the list of catalog items in the 'SC categories' widget? Maybe I can filter on meta tags within the KB articles themselves.

So for example, if my catalog category is Hardware, I need to create a list of KB articles that are related to the Hardware category - an article of how to complete the catalog request, or an article on Iphones if there is a catalog item to request a new iPhone.

So far I have the simple list widget filtered on published articles in the Service Request Knowledgebase. I am wondering also how best to filter them; obviously has to be some field on the KB article itself, or can it be on the catalog item? I am open to any suggestions, and really appreciate any feedback. Please see attached screenshot.

Many thanks, Mark S

 Further  to this, I am looking at widget events? Any ideas? Tks

 

1 ACCEPTED SOLUTION

Hi Mark,

 

I actually made a quick PoC for this and put it on youtube. Take a look and see what you think.

https://youtu.be/45jfMlfYrRY 

 

 

View solution in original post

8 REPLIES 8

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi Mark,

 

You wouldn't by any chance also use HR? Since with HR there is this functionality already. I have no idea why it's only for HR and not all catalog items. But it gets installed with HR. Then you can have a related list on the article named Catalog Item to KB Link and looks like this:

find_real_file.png

 

Then you can create records like this which you then just would have needed to query and show...

 

find_real_file.png

 

I'm going to check with the PO for knowledge why, but I guess it HR that just thought of this functionality and made it. It might show up in the future releases. I would go into your PDI and install HR just to see the functionality and then you can pretty much copy as much as you want until it's there as a Baseline Functionality.

//Gƶran
Feel free to connect with me:
 

Hello Goran,

many thanks for the reply, I follow quite a bit of you content here and on youtube.

I was doing this in my own dev instance, and saw the HR functionality. The links to kb articles added them (the kb article) onto the actual HR catalog item. I was hoping I could get a list of related articles in a widget. I will plod on and see what I can find. Cheers

Hi Mark,

So the HR thingie would rather be when you have actually clicked on a link and saw the specific item. Here we want to match the category and fetch the right articles. Does the Service Catalog and Knowledge base have the same category structure? I say it would be fairly easy to create this to match the top level of the categories. But since they are build in different ways (e.g. KB category uses a documentID field to match parent) I will be trickier to find the correct matches down the line. I think I would rather do some customization here and have a m2m table linking Service Catalog categories with KB articles.

I was thinking of linking SC categories and KB categories. But it will be messy when you for example want to get all the articles that is on a sub-category on KB side.

I can probably throw something up and give you a good start how it might look like if you want.

//Gƶran

Feel free to connect with me:
 

Hello Goran,

I was wondering --- there is a field we can add to the Catalog Item called 'Catalog Item to KB Links '. The table is sc_2_kb.

I have attached a couple of screenshots. Is it possible to use this in a widget? Maybe have a script to query the meta or categories somehow? 

The other thing I am not sure about are the 'onclick' events  used in widgets. I cant see where they are stored.

Thanks a lot.

Mark