How to show the attached knowledge related list only when a knowledge article is attached to an INC?

Rajitha Sunkara
Tera Contributor

How to show the attached knowledge related list only when a knowledge article is attached to an INC?

How we can show the attached knowledge related list only when a knowledge article is attached through contextual search.

I have been trying with UI policy but there is option to give a condition for only when knowledge article is attached through contextual search, so is there any other way to do this.

1 ACCEPTED SOLUTION

Sebas Di Loreto
Kilo Sage
Kilo Sage

@Rajitha Sunkara 

Have you tried selecting “omit when empty” on the list control on that related list? That will only show the related list when there is something on it. 

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.


View solution in original post

2 REPLIES 2

Shuba
Tera Contributor

To show the attached knowledge related list only when a knowledge article is attached to an INC (Incident), you can follow these steps:

  1. Navigate to the ServiceNow platform and open the Incident form.

  2. Click on the gear icon in the top right corner and select "Configure > Form Layout".

  3. Under the "Related Links" section, find the "Knowledge" related list and click on the gear icon.

  4. In the related list configuration window, go to the "Advanced" tab.

  5. In the "Advanced" tab, under the "Visibility" section, add the following condition:

    gs.hasRole('itil') && current.knowledge_base != ''

    This condition checks whether the user has the "itil" role and whether a knowledge base is attached to the current Incident record.

  6. Click "Save" to save your changes.

Now, the "Knowledge" related list will only be visible when a knowledge base is attached to the current Incident record and the user has the "itil" role.

Sebas Di Loreto
Kilo Sage
Kilo Sage

@Rajitha Sunkara 

Have you tried selecting “omit when empty” on the list control on that related list? That will only show the related list when there is something on it. 

 


If I helped you with your case, please click the Thumb Icon and mark as Correct.